#include using namespace std; int main(){ double H,R; cin >> H >> R; double S = -8.245 + 6.807*H + 7.073*R*2*M_PI; cout << S << endl; return 0; }