LearnPy Hub
← Operators problems
Medium

Add Minutes to a Time

Read a time as hours and minutes on one line (24-hour clock) and a number of minutes to add. Print the new time as HH:MM.

Input

Line 1: h m. Line 2: minutes.

Output

HH:MM.

Sample 1

Input
10 30
45
Output
11:15

Sample 2

Input
23 50
20
Output
00:10
solution.py
Output appears here
Add Minutes to a Time · Python practice problem · LearnPy Hub