import sys
readline = sys.stdin.readline
write = sys.stdout.write
def solve():
    T, H, S = map(int, readline().split())
    if T == -1:
        return False
    rest = 7200 - (T*3600 + H*60 + S)
    write("%02d:%02d:%02d\n" % (rest//3600, (rest//60)%60, rest%60))
    rest *= 3
    write("%02d:%02d:%02d\n" % (rest//3600, (rest//60)%60, rest%60))
    return True
while solve():
    ...

