The end of the lessons
Problem
At some schools, classes begin at 9:00. Lesson duration - 45 minutes, after the 1st, 3rd, 5th, etc. lessons change 5 minutes, and after the 2nd, 4th, 6th, etc. - 15 minutes. Determine when the specified lesson ends.
Input format
Given a lesson number (number from 1 to 10).
Output format
Output two integers: the end time of the lesson in hours and minutes.
It is forbidden to use any algorithmic constructions except arithmetic operations. See the list of forbidden operations in the line forbidden operators.
Example
N |
Input |
Output |
1 |
3 |
11 35 |
2 |
2 |
10 35 |
Запрещенные операторы: if
; while
; for
; ?
; until