H,R=map(float,input().split()) from math import pi ans=-8.245+6.807*H+7.073*2*R*pi print(ans)