Time decomposition (1)

Write a program that, given a number of seconds nn, prints the number of hours, minutes and seconds represented by nn.

Input

Input consists of a natural number nn.

Output

Print three natural numbers hh, mm, ss such that 3600h+60m+s=n3600h+60m+s=n, with m<60m<60 and s<60s<60.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:34:04.509Z

© Jutge.org, 2006–2026.
https://jutge.org