Hide

Problem M
A Second Opinion

Write a program that, given a duration in seconds as input, outputs the same duration as hours, minutes, and seconds.

Hint: use integer division (//) and remainder (%).

Input

One line containing the integer $s$, the number of seconds that should be rewritten, where $0 \leq s \leq 1\, 000\, 000$.

Output

One line containing three integers, the number of hours, the number of minutes, and the number of seconds separated by a space, a colon, and another space.

Sample Input 1 Sample Output 1
1000
0 : 16 : 40
Sample Input 2 Sample Output 2
80000
22 : 13 : 20

Please log in to submit a solution to this problem

Log in