float r,t;main(i){for(;~scanf("%f",&r);printf("%.3f\n",t+273.15))for(;i++&31;t+=r-100)t*=.60917+t/'C¦'+(t<0?t-100:0)*t*t/239e7;}