while 1:
    H,M,S=list(map(int,input().split()))
    if H<0:break
    t=7200-(3600*H+60*M+S)
    print('{:02d}:{:02d}:{:02d}'.format(t//3600, (t%3600)//60, t%60))
    t *= 3
    print('{:02d}:{:02d}:{:02d}'.format(t//3600, (t%3600)//60, t%60))

