#include<stdio.h>
#include<math.h>


struct cylinder{
        double r,h,a,v;
};
int main()
{
    struct cylinder c;
    
    scanf("%lf",&c.r);
        scanf("%lf",&c.h);
        
    if(c.r<=0 || c.h<=0)
    {
        printf("Invalid input\n");
        return 0;
    }
    
    c.a=2*M_PI*c.r*(c.r+c.h);
         c.v=M_PI*c.r*c.r*c.h;

    printf("Surface Area: %.2lf\n",c.a);
        printf("Volume: %.2lf\n",c.v);

    return 0;

}