while True:
    h,m,s = [int(x) for x in input().split()]
    if h < 0 and m < 0 and s < 0:
        break
    r = 7200 - h * 3600 - m * 60 - s
    
    for m in [ 1, 3]:
        tmp = r * m
        dh = tmp // 3600
        dm = (tmp % 3600) // 60
        ds = tmp % 60
        print("{:02d}:{:02d}:{:02d}".format(dh,dm,ds))
    
    
