A single-screen theatre in Madurai prices tickets by age: • Below 3 years → free (0 rupees) • 3 to 12 years → 100 rupees • 13 to 59 years → 200 rupees • 60 years and above → 120 rupees (senior citizen discount)
Given a person's age, print the ticket price.
Input Format A single integer age.
Output Format Print the ticket price.
Constraints • 0 ≤ age ≤ 120
Examples
Example 1
Input
8
Output
100
Explanation 8 is between 3 and 12, so 100 rupees.
Example 2
Input
65
Output
120
Explanation Senior citizen, so 120 rupees.
Example 3
Input
2
Output
0
Explanation Babies below 3 watch free.
Example 4
Input
13
Output
200
Explanation 13 has just crossed the child range, so 200 rupees.
Acceptance—
Accepted0
Submissions0
Auto-save
SavedLn 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
100
No results yet
Run your code to test it against the sample cases.