while True:
    t, h, s = map(int, input().split())
    if t == -1:
        break
    ans = 7200-(t*3600+h*60+s)
    ans2 = ans*3
    print("{:02d}:{:02d}:{:02d}".format(ans//3600, (ans//60)%60, ans%60))
    print("{:02d}:{:02d}:{:02d}".format(ans2//3600, (ans2//60)%60, ans2%60))
