Problem 767
Minutes to Hours and Minutes
Problem
Convert a number of minutes M into whole hours and the minutes that are left over. There are 60 minutes in an hour, so the hours are M divided by 60 (rounded down) and the leftover minutes are the remainder M mod 60, which is always between 0 and 59. For example, 135 minutes is 2 hours and 15 minutes.
Input
A single integer M.
Output
Print the hours and the remaining minutes separated by a space.
Constraints
0 <= M <= 10^9
Example input
135
Example output
2 15
Explanation
135 minutes contains two full hours (120 minutes) and 15 minutes more, so the answer is 2 15.