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