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