Back to tasks
Parking
BeginnerPython for kids 路 Lesson 30: Contest tasks with conditions
Problem Statement
The first hour of parking is free, each of the next three costs 5 zloty, and every hour after that - 3 zloty. Read the number of hours and print the fee.
Input Format
One whole number - the number of hours (0..100).
Output Format
One number - the result.
Examples
Example 1
Input
1
Output
0
Example 2
Input
3
Output
10
Example 3
Input
6
Output
21