Integer division and remainder




Task
Time limit: 1000 ms,
Memory limit: 256 Mb

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: given lesson number (number from 1 to 10).
Output: Output two integers: the end time of the lesson in hours and minutes. When solving this problem, you can not use cycles and conditional instructions.

It is forbidden to use any algorithmic constructs other than arithmetic operations


Examples
N Input Output
1 3 11 35
2 2 10 35

Prohibited statements:if;while;for;?;until

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: