while 1:
    h,m,s=map(int,raw_input().split())
    if h==-1:
        break
    t=h*3600+m*60+s
    ans1=7200-t
    ans2=ans1*3
    print "%02d:%02d:%02d"%(ans1/3600,(ans1%3600)/60,ans1%60)
    print "%02d:%02d:%02d"%(ans2/3600,(ans2%3600)/60,ans2%60)
exit()