Electricity bill

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, TEXT

Electricity Bill

The electricity company calculates the electricity bill using the following pricing scheme:

  • The first 100 kWh cost 200 VND/kWh.
  • The next 1000 kWh cost 500 VND/kWh.
  • The next 2000 kWh cost 1,000 VND/kWh.
  • The next 5000 kWh cost 10,000 VND/kWh.
  • The next 10,000 kWh cost 12,000 VND/kWh.
  • Any remaining electricity usage costs 100,000 VND/kWh.

Given that k kWh of electricity is consumed, calculate the total amount to pay.

Input

The input contains a single integer k.

k <= 10^9

Output

Output the total amount of money to pay.

Example

Input
150
Output
45000

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.