H,R = map(float,input().split()) ans = 8.245 + 6.807 * H + 7.073 * R * 2 * 3.14 print(ans)