a=int(input()) if a>=2000: if a>=3000: if a>=4000: print(a*0.6) else: print(a*0.7) else: print(a*0.8) else: print(float(a))