George woke up and saw the current time *s* on the digital clock. Besides, George knows that he has slept for time *t*. 

Help George! Write a program that will, given time *s* and *t*, determine the time *p* when George went to bed. Note that George could have gone to bed yesterday relatively to the current time (see the second test sample).
The first line contains current time *s* as a string in the format "hh:mm". The second line contains time *t* in the format "hh:mm" — the duration of George's sleep. It is guaranteed that the input contains the correct time in the 24-hour format, that is, 00 ≤ *hh* ≤ 23, 00 ≤ *mm* ≤ 59.
def solve(sh,sm,th,tm):
    h = 0
    m = abs (int(sm)-int(tm))
    diff_sh_from_24 = 24 - int(sh)
    if int(th) > diff_sh_from_24 :
        h = 24-(int(th) - diff_sh_from_24)
    elif int(th) == diff_sh_from_24:
        h = 0
    else:
        temp = int(sh) - int(th)
        if temp < 0:
            h = 24 - temp*-1
        else:
            h = temp
    return f'{"0"*(h <= 9)}{h}:{"0"*(m <= 9)}{m}'
    

        

def main():
    s = input().split(':')
    t = input().split(':')
    print(solve(*s,*t))

main()