N=float (input ()) T=N*0.99 F=1000000.0-N F*=0.01 T+=F F/=T print (F)