import sys
f = sys.stdin

from datetime import timedelta

def formatHHMMSS(delta):
    return '{:02d}:{:02d}:{:02d}'.format(delta.seconds // 3600, delta.seconds % 3600 // 60, delta.seconds % 60)

while True:
    leave_time = timedelta(hours=2)
    h, m, s = map(int, f.readline().split())
    if h == m == s == -1:
        break
    record_time =  timedelta(seconds=s, minutes=m, hours=h)
    leave_time -= record_time
    print(formatHHMMSS(leave_time))
    print(formatHHMMSS(leave_time * 3))