LogiQuest

327. Electricity Bill

EasyConditionalsSlabs

Units are charged in slabs: the first 100 units at ₹3, the next 100 at ₹5, and every unit above 200 at ₹8. Print the bill amount.

Input format

A single integer: units used.

Output format

The bill in rupees.

Example 1

Input

50

Output

150

Example 2

Input

100

Output

300

Constraints

0 ≤ units ≤ 10⁶

Read input from standard input and print the answer to standard output. Your code is judged against 6 test cases, most of them hidden.

Loading the MyLoginn IDE…