LearnPy Hub
← Variables problems
Medium

Seconds to HH:MM:SS

Given a number of seconds (less than one day), print it as hours, minutes and seconds, each padded to two digits.

Input

One integer n, 0 ≤ n < 86400.

Output

The time as HH:MM:SS.

Sample 1

Input
3661
Output
01:01:01

Sample 2

Input
59
Output
00:00:59
solution.py
Output appears here
Hints
Seconds to HH:MM:SS · Python practice problem · LearnPy Hub