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