def sreekumar_function(h, r): return -8.245+6.807*h+7.073*(2*pi*r) H, R = map(float, input().split()) print(sreekumar_function(H, R))