#35739: 糟糕,我發燒了!


108081a1@gm.chihlee.edu.tw (何姿儀)


F = int(input())
C = (F + 40) / 1.8 -40
# print(f'攝氏溫度為:{C}')
print(f'{C:.3f}')