eolymp
bolt
Try our new interface for solving problems
Problems

Таймер

Таймер

Time limit 1 second
Memory limit 64 MiB

Timer - a clock that can beep after a certain period of time. Write a program that determines when to be beeps.

Timer - a clock that can beep after a certain period of time. Write a program that determines when to be beeps.Timer - a clock that can beep after a certain period of time. Write a program that determines when to be beeps.

Input data

The first line of the input file is written the current time in HH:MM:SS (with leading zeros). At the same time it satisfies the constraints: hh - 00 to 23, MM and SS - 00 to 60.

The second line is recorded the time interval to be measured. The interval is in the format H:M:S (where H, M and S - from 0 to 10^9, without leading zeros). In addition, if H = 0 (or H = 0 and M = 0), then they can be omitted. For example, 100:60 really mean 100 minute 60 seconds, which is the same as 101:0 or 1:41:0. 42 stands for 42 seconds. 100:100:100 - 100 hours, 100 minutes, 100 sec, which is the same as 101:41:40.

В первой строке входного файла записано текущее время в формате ЧЧ:ММ:СС (с ведущими нулями). При этом оно удовлетворяет ограничениям: ЧЧ - от 00 до 23, ММ и СС - от 00 до 60.

Во второй строке записан интервал времени, который должен быть измерен. Интервал записывается в формате Ч:М:С (где Ч, М и С - от 0 до 10^9, без ведущих нулей). Дополнительно если Ч=0 (или Ч=0 и М=0), то они могут быть опущены. Например, 100:60 на самом деле означает 100 минут 60 секунд, что то же самое, что 101:0 или 1:41:0. А 42 обозначает 42 секунды. 100:100:100 - 100 часов, 100 минут, 100 секунд, что то же самое, что 101:41:40.

Output data

In the output file displayed in the format HH:MM:SS time, how much you hear a beep. Moreover, if the signal does not sound in the current day, then it should continue to follow the record + <number> days. For example, if the signal will sound the next day - a +1 days.

В выходной файл выведите в формате ЧЧ:ММ:СС время, во сколько прозвучит звуковой сигнал. При этом если сигнал прозвучит не в текущие сутки, то дальше должна следовать запись + <количество> days. Например, если сигнал прозвучит на следующий день – то +1 days.

Examples

Input example #1
01:01:01
48:0:0
Output example #1
01:01:01+2 days