BasicBasics & Math10 points

Electricity bill calculator

A utility company bills households by slabs. Your program will be used by the customer-care desk to explain a bill.

  • The first 100 units cost Rs 20 each
  • The next 100 units (101 to 200) cost Rs 30 each
  • Every unit above 200 costs Rs 40 each

Task: read the number of units consumed (an integer) and print the total bill as a whole number of rupees.

Sample tests

Input

80

Expected output

1600

Input

150

Expected output

3500

Your answer is also checked against 3 hidden tests.