Add one second

Write a program that adds one second to a clock time, given its hours,
minutes and seconds.

Input

Input consists of three natural numbers h, m and s that represent a
clock time, that is, such that h < 24, m < 60 and s < 60.

Output

Print the new clock time defined by h, m and s plus one second in the
format “HH:MM:SS”.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:20:56.188Z

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