n=int(input("请输入用电量总计:"))
s=0
if n<=150:
s=*0.4
elif n<=400:
s=()*0.5+150*0.4
else:
s=(n-400)*+250*0.5+150*0.4
print("应交的电费是%.1f" % s)