#! usr/bin/python3
# -*- coding : utf-8 -*-


import os,sys
import time



i = int(input('净利润：'))

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
















































cf330a7996fb6baf9528c68a6b3c1ebce0a1ed97
<mask token>

<mask token>
for idx in range(0, 6):
    if i > arr[idx]:
        r += (i - arr[idx]) * rat[idx]
        i = arr[idx]
print(r)

<mask token>
i = int(input('净利润：'))
arr = [1000000, 600000, 400000, 200000, 100000, 0]
rat = [0.01, 0.015, 0.03, 0.05, 0.75, 0.1]
r = 0
for idx in range(0, 6):
    if i > arr[idx]:
        r += (i - arr[idx]) * rat[idx]
        i = arr[idx]
print(r)

import os, sys
import time
i = int(input('净利润：'))
arr = [1000000, 600000, 400000, 200000, 100000, 0]
rat = [0.01, 0.015, 0.03, 0.05, 0.75, 0.1]
r = 0
for idx in range(0, 6):
    if i > arr[idx]:
        r += (i - arr[idx]) * rat[idx]
        i = arr[idx]
print(r)

#! usr/bin/python3
# -*- coding : utf-8 -*-


import os,sys
import time



i = int(input('净利润：'))

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















































