#define pi 3.1415926 // 宏定义π
#include <iostream>
using namespace std;
// 输入半径和高,求圆面积和体积
int main()
{
double r, h; // 半径和高
cin >> r >> h;
double s = 2 * pi * r * h + pi * r * r * 2; //表面积
double v = pi * r * r * h; //体积
cout << s << " " << v << endl;
return 1;
}