#include <stdio.h>
#include <math.h>

#define PI 3.141592653589793

struct Cylinder {
    int radius;
    int height;
};

union Result {
    float surfaceArea;
    float volume;
};

int main() {
    struct Cylinder c;
    union Result res;

    scanf("%d", &c.radius);
    scanf("%d", &c.height);

    if (c.radius < 0 || c.height < 0) {
        printf("Invalid input\n");
        return 0;
    }

    res.surfaceArea = 2 * PI * c.radius * (c.radius + c.height);
    printf("Surface Area: %.2f\n", res.surfaceArea);

    res.volume = PI * c.radius * c.radius * c.height;
    printf("Volume: %.2f\n", res.volume);

    return 0;
}