def calcute_profit(i):
    arr = [1000000,600000,400000,200000,100000,0]
    rat = [0.01,0.015,0.03,0.05,0.075,0.1]
    r = 0
    for idx in range(0,6):
        if i > arr[idx]:
            r = r + (i - arr[idx] * rat[idx])
            i = arr[idx]
    return r

i = int(input('净利润:'))
profit = calcute_profit(i)
print('利润为{}元时，应发奖金总数为{}元').format((i,profit))

