while 1:
    try:
        h,m,s=map(int,input().split())
        if h+m+s==-3:break
        last=7200-h*3600-m*60-s
        print(f'{last//3600:0>2}:{(last%3600)//60:0>2}:{last%60:0>2}')
        last*=3
        print(f'{last//3600:0>2}:{(last%3600)//60:0>2}:{last%60:0>2}')     
    except:break
