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