while 1: r=input()-100 t=0 for i in range(9):t=(r+t*t*(5.775e-5+[0,4.183e-10*(t-100)*t][r<0]))/0.39083 print"%.3f"%(t+273.15)