LearnPy Hub
← Variables problems
Hard

Add Two Durations

Read two durations as H:M:S (the parts may be larger than normal, like 0:75:90). Add them and print the total as D days, HH:MM:SS.

Input

Two lines.

Output

One line.

Sample 1

Input
10:30:45
20:45:30
Output
1 days, 07:16:15

Sample 2

Input
0:75:90
0:0:0
Output
0 days, 01:16:30
solution.py
Output appears here
Add Two Durations · Python practice problem · LearnPy Hub