while(1):
    [h,m,s]=[int(x) for x in raw_input().split()]
    if h<0:
        break
    else:
        rests=2*3600-s-60*m-3600*h
        rests3=rests*3
        A=[rests/3600,(rests%3600)/60,rests%60]
        a=''
        b=''
        B=[rests3/3600,(rests3%3600)/60,rests3%60]
        for x in range(3):
            if A[x]<10:
                a=a+'0'+str(A[x])
            else:
                a=a+str(A[x])
            if x!=2:
                a=a+':'
        print a
        for x in range(3):
            if B[x]<10:
                b=b+'0'+str(B[x])
            else:
                b=b+str(B[x])
            if x!=2:
                b=b+':'
        print b# your code goes here