#54393: 一行okok


maverick9723@gmail.com (MarkKK)


 

print(f"{((int(input())-32)*5/9):.3f}")