Module: INTEGER DIVISION AND REMAIN


Problem

6 /16


Digital Watch

Problem

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 outputs 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 format
Given an integer n.

Output format
Output the answer to the problem.
 

It is forbidden to use any algorithmic constructions except arithmetic operations. See the list of forbidden operations in the line forbidden operators.
 
Example
N Input  Output
1 150 2 30
2 1441 0 1