Gross Salary 2023

Xem dạng PDF

Gửi bài giải

Điểm: 1,00 (OI)
Giới hạn thời gian: 1.0s
Giới hạn bộ nhớ: 256M
Input: stdin
Output: stdout

Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch

After working for a period of time at major technology companies such as Google, Facebook, etc. Nam wishes to have more time for travel and exploring life. Therefore, Nam decided to resign and become a freelancer. However, with a high Gross salary, Nam still has to pay personal income tax to the state as required by regulations.

In this case, Gross salary is the total amount that the laborer receives each month. Net salary is the amount that the laborer actually receives from the employer each month after deducting personal income tax according to the government regulations.

To make things convenient, Nam has requested his clients to directly handle the personal income tax payment to the government, and Nam only receives the net salary after tax. In this case, the personal income tax rates are applied progressively, and the calculation of tax after assisting the individual with 11 million VND/month is as follows:

Level Taxable income/month (VND) Rate
1 0 - 5 million 5%
2 Over 5 - 10 million VND 10%
3 Over 10 - 18 million VND 15%
4 Over 18 - 32 million VND 20%
5 Over 32 - 52 million 25%
6 Over 52 - 80 million 30%
7 Over 80 million 35%

The tax rate for each level is only applied to the amount of money that belongs to that level.

Calculate the Gross salary that the clients have to pay Nam.

Input

A non-negative integer N which is Nam's Net salary (VND) (N ≤ 10^10).

Output

Only integer is the amount of Gross salary that clients have to pay, round to unit.

Example

Input
15750000
Output
16000000
Input
45000000
Output
52000000

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.