// editor5
// editor5
#include <stdio.h>
#include <math.h>
int main()
{
    int r,h;
    scanf("%d%d",&r,&h);
    if (r < 0 || h < 0)
    {
        printf("Invalid input\n");
        return 0;
    }
    int surfaceArea = 2 * 3.141592653589793 * r * (r + h);
    int* volume = 3.141592653589793 * r * r * h;
    printf("Surface Area: %d",&surfaceArea);
    printf("Volume: %.d",& volume);

return 0;
}