# Aizu Problem 0074: Videotape
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


while True:
    t, m, s = [int(_) for _ in input().split()]
    if t == m == s == -1:
        break
    secs_left = 7200 - 3600 * t - 60 * m - s
    for secs in [secs_left, 3 * secs_left]:
        h = secs // 3600
        secs %= 3600
        m = secs // 60
        s = secs % 60
        print("%02d:%02d:%02d" % (h, m, s))