시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 15 11 8 66.667%

문제

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.

예제 입력

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

예제 출력

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

힌트