n=int(input()) if 2000<=n<3000: n=0.8*n elif 3000<=n<4000: n=0.7*n elif 4000<=n: n=0.6*n else: n=n print("{:.1f}".format(n))