시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB65543040566.069%

문제

In this problem you are given the starting time of an event and its duration. All you have to do is to say when the event ends.

입력

Input consists of a number of lines, each line representing an event. The last line of input will be 00:00 00:00 – do not process this line. Each event is represented by two times separated by a space. Each time is in the format hh:mm. The first time is the start time of the event, the second time is its duration. For the start time, a legal time using a 24 hour clock will be supplied. For the duration, the minutes will be from 0 to 59 inclusive, but the hours may be from 0 to 96 inclusive.

출력

For each line of input, produce one line of output containing a single time, also in the format hh:mm, being the end time of the event as a legal 24 hour time. If this time is not on the same day as the start time, the time will be in the format hh:mm +n, where n is the number of days after the starting day.

예제 입력 1

03:50 06:10
15:25 26:30
23:59 00:01
00:00 00:00

예제 출력 1

10:00
17:55 +1
00:00 +1