335. Parking Fee
EasyCeil Division
Parking costs ₹20 for the first hour (or part of it) and ₹10 for each additional hour or part. Print the fee for a stay of m minutes. A stay of 0 minutes costs 0.
Input format
A single integer m.
Output format
The fee.
Example 1
Input
30
Output
20
Example 2
Input
60
Output
20
Constraints
0 ≤ m ≤ 10⁶
Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.
Loading the MyLoginn IDE…