根据输入的x值,进行范围判定就行了哦
x = int(input()) y=0 if x<1000: y =x elif x<2000: y=0.9*x elif x<3000: y=0.8*x else: y=0.7*x print(y,end="")