while True:
    t, h, s = map(int, input().split())
    if t == -1:
        break
    rest = []
    rest.append(7200 - (3600*t + 60*h + s))
    rest.append(rest[0]*3)
    for r in rest:
        t = 0
        h = 0
        if r >= 3600:
            t = r//3600
            r -= 3600*t
        if r >= 60:
            h = r//60
            r -= 60*h
        print("{0:02d}:{1:02d}:{2:02d}".format(t, h, r))

