a,b=map(float,input().split()) print(-8.245 + a*6.807 + b*2*3.14159265359*7.073)