while 1:
    h, m, s = map(int, raw_input().split())
    if h == m == s == -1:
        break
    rest = 2 * 60 * 60
    rest3 = 2 * 60 * 60
    rest -= h * 60 * 60 + m * 60 + s
    rest3 -= (h * 60 * 60 + m * 60 + s + 2) / 3
    print "%02d:%02d:%02d" % (rest / 3600, rest % 3600 / 60, rest % 3600 % 60)
    print "%02d:%02d:%02d" % (rest3 / 3600, rest3 % 3600 / 60, rest3 % 3600 % 60)