#include #include #include using namespace std; const long double pi = acos(-1); int main(){ long double h,r; cin >> h >> r; cout << setprecision(20) << -8.245+6.807*h+7.073*2.0*r*pi << endl; }