#K67092. Parking Charge Calculation
Parking Charge Calculation
Parking Charge Calculation
You are given the number of hours a car is parked in a parking lot. The cost is calculated as follows:
If the car is parked for \(h\) hours (where \(1 \leq h \leq 24\)):
- If \(h \leq 2\), the charge is 100 dollars.
- If \(h > 2\), the charge is calculated as \(100 + (h - 2) \times 50\) dollars.
Write a program that reads the number of hours from standard input (stdin) and outputs the total parking charge to standard output (stdout).
Note: The formula for \(h > 2\) hours is given by:
\[ \text{charge} = 100 + (h-2) \times 50 \]
inputFormat
Input consists of a single integer \(h\) which indicates the number of hours the car was parked. \(1 \leq h \leq 24\).
outputFormat
Output a single integer representing the total parking charge.
## sample1
100