#include<stdio.h>
#include<math.h>
struct maths
{
    int r;
    int h;
    float s;
    float v;
};
int main()
{
    struct maths v;
    scanf("%d",&v.r);
    scanf("%d",&v.h);
    if(v.r<0||v.h<0)
    {
        printf("Invalid input");
    }
    else
    {
        float s=2*(3.14)*(v.r)*(v.r+v.h);
        float v=(3.14)*(v.r*v.r)*(v.h);
        printf("%.2f Surface area:",v.s);
        printf("%.2f volume:",v.v);
    }
}