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 hh, mm and ss that represent a clock time, that is, such that h<24h<24, m<60m<60 and s<60s<60.

Output

Print the new clock time defined by hh, mm and ss 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