h,r = map(double,input().split()) PI = 3.141592653589793238462643383 print(-8.245+ 6.807 * h + 2*PI*7.073*r)