//有关圆的计算
#include<iostream>
using namespace std;
int main()
{
float h,r;
cin>>r>>h;
float C=6.28*r;
float s=3.14*r*r;
float S=12.56*r*r;
float V=3.14*r*r*h;
cout<<C<<" "<<s<<" "<<S<<" "<<V;
return 0;
}
//法2
#include<iostream>
using namespace std;
#define PI 3.14
int main()
{
double r,h,c,S1,S2,V;
cin>>r>>h;
c=2*PI*r;
S1=PI*r*r;
S2=4*PI*r*r;
V=h*PI*r*r;
cout<<c<<" "<<S1<<" "<<S2<<" "<<V<<endl;
return 0;
}