Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/soniyadan-vaqtga

Seconds to time

Easy 1000 ms 64 MB 11%
Share

$N$ seconds have passed since the start of the day. Find the current hours, minutes and seconds.

Seconds split into hours, minutes and seconds

Input

One integer $N$.

Output

One line with three integers: hours $h$, minutes $m$ and seconds $s$ ($0 \le m, s \le 59$).

Note

$0 \le N \le 86399$

Examples

Input #1
3725
Output #1
1 2 5
Input #2
0
Output #2
0 0 0

Sign in to submit a solution

Signing up is free and takes a minute.