#include using namespace std; int main() { long double H,R; cin >> H >> R; cout << fixed << setprecision(18) << -8.245+6.807*H+7.073*R*2*3.1415926536 << endl; }