# -*- coding: utf-8 -*-
# Brief description: The bonuses issued by enterprises are based on the commission of profits. When the profit (I) is less than or equal to RMB 100,000, the bonus can be withdrawn by 10%;
# When the profit is higher than 100,000 yuan and less than 200,000 yuan, the part below 100,000 yuan will be charged a 10% commission, and the part above 100,000 yuan will be charged a 7.5% commission;
# When between 200,000 and 400,000, the commission of the part above 200,000 yuan can be 5%;
# For parts that are higher than 400,000 yuan from 600,000 yuan, a commission of 3% can be raised;
# When the price is between 600,000 and 1 million, the commission of the part above 600,000 yuan can be 1.5%.
# When it is above 1 million yuan, the part that exceeds 1 million yuan will be charged a 1% commission.
#Question: Enter the profit I of the month from the keyboard to find the total number of bonuses to be paid?
def reward(profit):
reward = 0.0
if profit<=10:
return profit*0.1
elif profit<=20 and profit>10:
return (profit-10)*0.075+1
elif profit<=40 and profit>20:
return (profit-20)*0.05+10*0.1+10*0.075
elif profit<=60 and profit>40:
return (profit-40)*0.03+20*0.05+10*0.075+10*0.1
elif profit<=100 and profit>60:
return (profit-60)*0.015+20*0.03+20*0.05+10*0.075+10*0.1
elif profit>100:
return (profit-100)*0.01+40*0.015+20*0.03+20*0.05+10*0.075+10*0.1
if __name__ == "__main__":
profit = float(raw_input("Please enter the profit for the month (10,000): "))
print reward(profit)*10000