Electric train
We know how much time it takes for the train to travel between any two adjacent stations on the route. We know the time of departure from the initial station. Write a program that calculates the departure time from each station for electric train on its route (for the last station it will be the arrival time, and we ignore the station time for the train).
Input
The first line contains the train departure time from the initial station. The time is given in the next format: the first two digits describe the hours (from 00 to 23), then colon and two digits for minutes (from 00 to 59). There is no blanks in the line with time.
The second line gives the number of stations n (2 ≤ n ≤ 1000) on the route of electric train (including the initial and the final stations). Third line contains n–1 numbers: the first number gives the time to travel from initial station to the second, the second number gives the time to travel from the second station to the third and so on. All these numbers are integers and no greater than 1000.
Output
Print for each station the time when the train passes it. Print the time in format given in the input.