// editor5
#include<stdio.h>
int main()
{
    int r,h;
    scanf("%d\n%d",&r,&h);
    if(r<0||h<0)
    {
        printf("Invalid input");
    }
    else
    {
        float A=(2*3.14159*r*h)+(2*3.14159*(r*r));
        printf("surface Area: %.2f",A);
        
        float B=(3.14159)*(r*r)h;
        printf("Volume: %.2f",B);
    }
    return 0;
}