def t_shift(rem):
    h = m = s = 0
    if rem > 3600:
        h = rem / 3600
        rem -= 3600*h
    if rem > 60:
        m = rem / 60
        rem -= 60*m
    s = rem
    print str(h).rjust(2, '0') + ":" + str(m).rjust(2, '0') + ":" + str(s).rjust(2, '0')

while True:
    h, m, s = map(int, raw_input().split())
    if h == m == s == -1:
        break
    rem1 = 7200 - 3600*h - 60*m - s
    rem2 = 3*rem1
    t_shift(rem1)
    t_shift(rem2)