k = float(input())

c = k - 273.15

f = c * 1.8 + 32

print(f"{f:.3f}")