At school, the duration of each lesson is 45 minutes, and the breaks between lessons – just 5 minutes. The first lesson starts at 8 am sharp. Write a program that answers the question "What time does the Kth lesson end at this school?"
Input
One natural number K is entered, not exceeding 15.
Imprint
Print the end time of the Kth lesson: first hours, then minutes, separating them with a space.
Examples
# |
Input |
Output |
1 |
1 |
8 45 |
2 |
6 |
12 55 |