End of Lessons

Problem Statement

In some school, lessons start at 9:00. Each lesson lasts 45 minutes. After 1st, 3rd, 5th, etc. lessons there’s a 5-minute break, and after 2nd, 4th, 6th, etc. — a 15-minute break. Determine when the given lesson ends.

Input

A lesson number is given (from 1 to 10).

Output

Print the end time of that lesson in hours and minutes.

Example

[{'input': '3', 'output': '11 35'}, {'input': '2', 'output': '10 35'}]