from decimal import Decimal
k = input()
print((Decimal(k) - Decimal('273.15')) * Decimal('1.8') + Decimal('32.0'))

浮点数运行存在不精准问题,需引用decimal模块处理。