h, r = io.read("*n", "*n") R = r * 2 * math.pi s = -8.245 + 6.807 * h + 7.073 * R print(s)