Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

EIGROSS2 - Gross Salary 2023

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 ≤ 1010).

Output

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

Example

Input

Output

15750000

16000000

45000000

52000000


Added by:Ha Minh Ngoc
Date:2023-12-25
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG FSHARP GO JAVA JS-MONKEY NODEJS PHP PYTHON PYPY PYPY3 PYTHON3 RUBY SQLITE SWIFT VB.NET
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.