• محدودیت زمان: ۶ ثانیه
  • محدودیت حافظه: ۲۵۶ مگابایت

The amount of income tax imposed on any taxpayer depends on his/her income. For an income less than or equal to 1,000,0001,000,000 Oshloobs, no tax is paid. For an income greater than 1,000,0001,000,000 and less than or equal to 5,000,0005,000,000 Oshloobs, the tax is 1010% of the income. For an income over 5,000,0005,000,000 Oshloobs, the tax is 2020% of the income. You should write a program to calculate the net income of any given employee after the deducted tax.

ورودی

There are multiple lines in the input. Each line contains an employee’s income before the tax, which is a positive integer, a multiple of 1000, and not greater than 10,000,00010,000,000. The input terminates with a line containing 00 which should not be processed.

خروجی

For each employee, output a line containing the net income after the deducted tax.

مثال

ورودی نمونه ۱

10000
50000
2000000
7500000
0
Plain text

خروجی نمونه ۱

10000
50000
1800000
6000000
Plain text

ارسال پاسخ برای این سؤال
فایلی انتخاب نشده است.