while True :
    T, H, S = map(int, input().split())
    if T == -1 and H == -1 and S == -1 :
        break
    
    time = T * 3600 + H * 60 + S
    n = 2*60*60 - time
    b = (2*60*60 - time) * 3
    
    n_T = n // 3600
    n_H = (n % 3600) // 60
    n_S = (n % 3600) % 60
    b_T = b // 3600
    b_H = (b % 3600) // 60
    b_S = (b % 3600) % 60
    print('{0:0=2}:{1:0=2}:{2:0=2}'.format(n_T, n_H, n_S))
    print('{0:0=2}:{1:0=2}:{2:0=2}'.format(b_T, b_H, b_S))
