def print_remain(sec):
    print "{:02}:{:02}:{:02}".format(sec/60**2,sec%60**2/60,sec%60)
while True:
    h,m,s=map(int,raw_input().split())
    if (h,m,s)==(-1,-1,-1):
        break
    sec=h*60**2+m*60+s
    print_remain(2*60**2-sec)
    print_remain((2*60**2-sec)*3)