H,FFC=map(float,input().split()) print(-8.245 + 6.807*H + 7.073*FFC*3.14159265358979323846*2)