Task
Time limit:
1000 ms,
Memory limit:
256 Mb
Given the number n. Since the beginning of the day n minutes have passed. Determine how many hours and minutes the electronic clock will show at this moment. The program should print two numbers: the number of hours (from 0 to 23) and the number of minutes (from 0 to 59). Note that the number n may be greater than the number of minutes in a day.
Input: Enter an integer n.
Output: Print the answer to the problem.
It is forbidden to use any algorithmic constructs other than arithmetic operations
Examples:
N |
Input |
Output |
1 |
150 |
2 30 |
2 |
1441 |
0 1 |
Prohibited statements:if;for;while;do;max