ALGOR Contest: Round #2
Problem A · 100 points ·
ICPC rules
~/algor $ cat contests/round-2/A
A. Clock display
1000 ms
64 MB
s seconds have passed since the start of the day (since 00:00:00). Print the current time as HH:MM:SS: hours, minutes and seconds are always two digits (with a leading 0 if needed).
Input
One integer s — the number of seconds since the start of the day.
Output
One line — the time as HH:MM:SS.
Note
0 ≤ s ≤ 86 399
Examples
Input #1
3725
Output #1
01:02:05
Input #2
86399
Output #2
23:59:59