#include <iostream>
#include <cmath>
using namespace std;
int main(){
float r, h;
cin>>r>>h;
cout<<"surface area of the cone = pi*"<<pow(r,2)+sqrt(pow(r,2)+pow(h,2))<<endl;
cout<<"Volume of the cone = pi*"<<h*pow(r,2)/3<<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpewoJZmxvYXQgciwgaDsKCWNpbj4+cj4+aDsKCWNvdXQ8PCJzdXJmYWNlIGFyZWEgb2YgdGhlIGNvbmUgPSBwaSoiPDxwb3cociwyKStzcXJ0KHBvdyhyLDIpK3BvdyhoLDIpKTw8ZW5kbDsKCWNvdXQ8PCJWb2x1bWUgb2YgdGhlIGNvbmUgPSBwaSoiPDxoKnBvdyhyLDIpLzM8PGVuZGw7Cgl9