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.

EIEPC - ELECTRICAL PRICE CALCULATION

 

8
     7.2    5.5    6.7    9.1    8.5    9.3     3.7     7.5 

The electricity company offers the following formula for calculating electrical price:

- The first 100 Kw/h costs 700/ Kw/h.

- The next 50 Kw/h costs 1.500/ Kw/h.

- 300 Kw/h followed by 3.000/ Kw/h.

- The amount Kw remaining is calculated by 10.000/ Kw/h.

How much will it cost for N Kw/h?

 

Input

A positive integer N (0 < N < 103).

Output

The amount of money have to pay.

Example

Input:
250

Output:
445000

Added by:Ha Minh Ngoc
Date:2020-06-13
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.