def f(t):
    print("{:02d}:{:02d}:{:02d}".format(t//3600,(t%3600)//60,(t%3600)%60))
if __name__=="__main__":
    while 1:
        h,m,s=map(int,input().split())
        if h<0:break
        t=7200-h*3600-m*60-s
        f(t)
        f(t*3)