a=int(input()) if a>=2000 and a<3000: b=a*0.8 elif a>=3000 and a<4000: b=a*0.7 elif a>=4000: b=a*0.6 elif: b=a b=float(b) print(b)