#include<stdio.h>
#include<math.h>
#define PI 3.141592653589793;

struct cylinder
{
    float r;
    float h;
};
int main()
{
    struct cylinder myCylinder;
       
   // float r, h;
    float volume, surfaceArea;
    
    scanf("%f", &myCylinder.r);
    scanf("%f", &myCylinder.h);
    //if (r < -100 || r > 100 || h < -100 || h > 100)
    if (myCylinder.r < 0 || myCylinder.h < 0)
    {
        printf("Invalid input");
        return 0;
    }
    /*else if (r < -100 || r > 100 || h < -100 || h > 100)
    {
         printf("Invalid input");
    }*/
    else
    {
        surfaceArea = 2 * PI * myCylinder.r * (myCylinder.r + myCylinder.h);
        volume = PI * myCylinder.r * myCylinder.r * myCylinder.h;
        printf("Surface Area: %.2f\n", surfaceArea);
        printf("Volume: %.2f\n", volume);
    }
    return 0;
}