salary=float (input( ))
if salary<=5000:
tax=0
elif salary<=7000:
tax=(salary-5000)*0.1
elif salary<=10000:
tax=200+(salary-7000)*0.2
else:
tax=800+(salary-10000)*0.4
print(salary-tax)
微信扫码预览、分享更方便