def s2hms(sec):
    h,m1 = divmod(sec,3600)
    m,s  = divmod(m1,60)
    return("%.2d:%.2d:%.2d" % (h,m,s))

while True:
    h,m,s = map(int,input().strip().split())
    if h==-1 and m==-1 and s==-1:
        break

    rest = 120*60 - ((h*60 + m)*60 + s)
    print(s2hms(rest))
    print(s2hms(3*rest))