LearnPy Hub
← Arena
EasyRating 1000

Clock Plus Minutes

A 24-hour clock shows hh:mm. What will it show k minutes later?

Input

The time hh:mm, then k (0 ≤ k ≤ 10⁹) on the next line.

Output

hh:mm

Sample 1

Input
23:59
1
Output
00:00

Sample 2

Input
10:00
90
Output
11:30
solution.py
Output appears here
Clock Plus Minutes · Python Arena problem · LearnPy Hub