Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!
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).

A clock: s = 3661 seconds becomes 01:01:01

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

Sign in to submit a solution

Signing up is free and takes a minute.