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). 


-----Input-----

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.


-----Output-----

In the single line print time p — the time George went to bed in the format similar to the format of the time in the input.


-----Examples-----
Input
05:50
05:44

Output
00:06

Input
00:00
01:00

Output
23:00

Input
00:01
00:00

Output
00:01



-----Note-----

In the first sample George went to bed at "00:06". Note that you should print the time only in the format "00:06". That's why answers "0:06", "00:6" and others will be considered incorrect. 

In the second sample, George went to bed yesterday.

In the third sample, George didn't do to bed at all.

Difficulty: interview

Starter code:

Solutions:
s = input()
t = input()
a, b = int(s[:2]), int(s[3:])
c, d = int(t[:2]), int(t[3:])
a -= c
b -= d
if b < 0:
    a -= 1
    b = 60 + b
if a < 0:
    a = 24 + a
if a < 10:
    print(0, end = '')
print(a, ':', end = '', sep = '')
if b < 10:
    print(0, end = '')
print(b)


a, b = list(map(int, input().split(':')))
c, d = list(map(int, input().split(':')))
t = a * 60 + b - c * 60 - d

if t < 0:
    t += 60 * 24
a, b = t // 60, t % 60

print(str(a // 10) + str(a % 10) + ':' + str(b // 10) + str(b % 10))


h2, m2 = list(map(int, input().split(':')))
h_sleep, m_sleep = list(map(int, input().split(':')))

t2 = m2 + h2 * 60
t_sleep = m_sleep + h_sleep * 60

t2 -= t_sleep
if t2 < 0:
    t2 += 60 * 24

print('0' * (2 - len(str(t2 // 60))) + str(t2 // 60) + ':' + '0' * (2 - len(str(t2 % 60))) + str(t2 % 60))


def ui(a):
    a = str(a)
    return '0'*(2-len(a))+a
a,b = map(int,input().split(':'))
c,d = map(int,input().split(':'))
t1 = 60*a+b
t2 = 60*c+d
if t1>=t2:
    dt = t1-t2
else:
    dt = 1440-t2+t1
print(ui(dt//60),':',ui(dt%60),sep='')

s=input()

wh=int(s[0]+s[1])
wm=int(s[3]+s[4])

s=input()

th=int(s[0]+s[1])
tm=int(s[3]+s[4])

tm+=th*60

wm+=wh*60

wm-=tm
if(wm<0):
    wm=1440+wm
ansh=str(wm//60)
ansm=str(wm%60)
if(len(ansh)<2):
    ansh='0'+ansh
if(len(ansm)<2):
    ansm='0'+ansm
print(ansh+":"+ansm)


def conv(s):
	h = str(s // 60)
	m = str(s % 60)
	if len(h) < 2:
		h = '0' + h
	if len(m) < 2:
		m = '0' + m
	return h + ':' + m

s = list(map(int, input().split(':')))
t = list(map(int, input().split(':')))
s = s[0] * 60 + s[1]
t = t[0] * 60 + t[1]
p = s - t
if p < 0:
	p += 24 * 60
print(conv(p))


h1, m1 = list(map(int, input().split(':')))
h2, m2 = list(map(int, input().split(':')))
if (m2 > m1):
	m1 += 60
	h1 -= 1
h1 -= h2
m1 -= m2
if (h1 < 0):
	h1 += 24
h = ''
m = ''
if (h1 < 10):
	h = '0'
h += str(h1)
if (m1 < 10):
	m = '0'
m += str(m1)
print(h, m, sep = ':', end = '\n')


s = input()
p = input()
t1 = int(s[len(s) - 2:len(s)]) - int(p[len(p) - 2:len(p)])
k = 0
if t1 < 0:
    t1 += 60
    k = 1
t0 = int(s[:2]) - int(p[:2]) - k
while t0 < 0:
    t0 += 24
t0 %= 24
res = str(t0) + ':'
if len(res) < 3:
    res = '0' + res
ss = '0' + str(t1)
ss = ss[-2:]
res += ss
print(res)

s=input().strip()
p=input().strip()
ans=int(s[:2])*60+int(s[3:])-int(p[:2])*60-int(p[3:])
ans=ans%1440
t=('0' if ans//60<10 else '') + str(ans//60) + ':' + ('0' if ans%60<10 else '')+str(ans%60)
print(t)

s = input()
t1 = (10 * int(s[0]) + int(s[1])) * 60 + (10 * int(s[3]) + int(s[4]))
s = input()
t2 = (10 * int(s[0]) + int(s[1])) * 60 + (10 * int(s[3]) + int(s[4]))
t1 = (t1 - t2 + 24 * 60) % (24 * 60)
x1 = t1 // 60
x2 = t1 % 60
print(x1 // 10, end = '')
print(x1 % 10, end = '')
print(':', end = '')
print(x2 // 10, end = '')
print(x2 % 10)


s = input().split(":")
t = input().split(":")

h = int(s[0]) - int(t[0])

m = int(s[1]) - int(t[1])
while m < 0:
    m += 60
    h -= 1
while h < 0:
    h += 24


mstr = ''
if m < 10:
    mstr = '0' + str(m)
else:
    mstr = str(m)

hstr = ''
if h < 10:
    hstr = '0' + str(h)
else:
    hstr = str(h)

print(hstr + ':' + mstr)



s1=input().strip()
s2=input().strip()
h1=int(s1[:2])
h2=int(s2[:2])
m1=int(s1[3:])
m2=int(s2[3:])
h3=h1-h2
m3=m1-m2
if m3<0:
    m3=60+m3
    h3-=1
if h3<0:
    h3=24+h3
print((2-len(str(h3)))*'0'+str(h3)+':'+(2-len(str(m3)))*'0'+str(m3))


s = list(map(int,input().split(':')))
s = (24+s[0])*60+s[1]
t = list(map(int,input().split(':')))
t = t[0]*60+t[1]
p = (s - t) % (24 * 60)
p = '{:02}:{:02}'.format(p//60, p % 60)
print(p)


h,m = [int(x) for x in input().split(":")]
hdiff, mdiff = [int(x) for x in input().split(":")]

m1=m-mdiff
h1=h-hdiff
if m1<0:
  m1=60+m1
  h1=h1-1
if h1<0:
  h1=24+h1
h1=str(h1)
m1=str(m1)
print(h1.zfill(2)+":"+m1.zfill(2))

from sys import stdin
from datetime import datetime, timedelta

def main():
	s = stdin.readline().strip()
	t = stdin.readline().strip()

	s = datetime.strptime(s, '%H:%M')
	t = datetime.strptime(t, '%H:%M')

	t = timedelta(hours = t.hour, minutes = t.minute)

	p = s - t

	print('{:02}:{:02}'.format(p.hour, p.minute))

def __starting_point(): main()
__starting_point()

a = input()
q1, q2, q3, q4 = int(a[0]), int(a[1]), int(a[3]), int(a[4])
b = input()
w1, w2, w3, w4 = int(b[0]), int(b[1]), int(b[3]), int(b[4])
ww = (q3*10 + q4) + (q1*10 + q2)*60
qq = (w3*10 + w4) + (w1*10 + w2)*60
s = ""
if ww == qq:
    print("00:00")
elif (ww - qq) > 0:
    if(ww - qq) // 60 > 9:
        d = str((ww - qq)//60)
        s += d
    else:
        s += "0"
        d = str((ww - qq)//60)
        s += d
    s += ":"
    if (ww - qq) % 60 > 9:
        d = str((ww - qq)%60)
        s += d
    else:
        s += "0"
        d = str((ww - qq)%60)
        s += d 
    print(s)
else:
    if(ww - qq + 1440) // 60 > 9:
            d = str((ww - qq+ 1440)//60)
            s += d
    else:
        s += "0"
        d = str((ww - qq+ 1440)//60)
        s += d
    s += ":"
    if (ww - qq + 1440) % 60 > 9:
        d = str((ww - qq + 1440)%60)
        s += d
    else:
        s += "0"
        d = str((ww - qq + 1440)%60)
        s += d   
    print(s)



from datetime import *
a = input().split(":")
b = input().split(":")
x = datetime(1,1,3,int(a[0]),int(a[1]))
y = timedelta(hours=int(b[0]),minutes=int(b[1]))
z = str(x - y).split(' ')[1].split(":")
print("%s:%s"%(z[0],z[1]))


current = input()
sleep = input()

hour_current = current[:current.index(':')]
min_current = current[current.index(':')+1:]

hour_sleep = sleep[:sleep.index(':')]
min_sleep = sleep[sleep.index(':')+1:]

current_in_min = int(hour_current)*60 + int(min_current)
sleep_in_min = int(hour_sleep)*60 + int(min_sleep)

bed_time = current_in_min - sleep_in_min
if bed_time < 0 :
    bed_time = 24*60 + bed_time
    out_hour = bed_time // 60
    out_min = bed_time % 60
else:
    out_hour = bed_time // 60
    out_min = bed_time % 60
if out_hour < 10 :
    out_hour = "0"+str(out_hour)
if out_min < 10 :
    out_min = "0" + str(out_min)
print(str(out_hour) + ":" + str(out_min))


s1=input()
s2=input()
h1,m1=s1.split(':')
h2,m2=s2.split(':')
m=int(m1)-int(m2)
h=int(h1)-int(h2)-1*(m<0)
print(str(h%24).zfill(2),str(m%60).zfill(2),sep=':')




import sys
import math
import heapq
import random
import collections
import datetime

def main():
    # sys.stdin = open('input.txt', 'r')
    # sys.stdout = open('output.txt', 'w')

    t1 = list(map(int, input().strip().split(':')))
    t2 = list(map(int, input().strip().split(':')))

    t1_ = datetime.timedelta(hours=t1[0], minutes=t1[1])
    t2_ = datetime.timedelta(hours=t2[0], minutes=t2[1])

    t3_ = t1_- t2_
    s = str(t3_)

    if len(s[-8:-3]) == 4:
        print('0'+s[-8:-3])

    elif len(s[-8:-3]) == 5 and s[-8] == ' ':
        print('0'+s[-7:-3])

    else:
        print(s[-8:-3])

    # sys.stdin.close()
    # sys.stdout.close()

def __starting_point():
    main()

__starting_point()

[e1,e2] = map(int,input().split(':'))
[s1,s2] = map(int,input().split(':'))

total1 = e1*60 + e2;
total2 = s1*60 + s2;
ans = 0
if total1 >= total2 :
    ans = total1 - total2
else:
    ans = 1440 - total2 + total1
out = ''
if int(ans/60) < 10:
    out = out + '0' + str(int(ans/60))
else:
    out = str(int(ans/60))
out = out + ':'
if int(ans%60) < 10:
    out = out + '0' + str(ans%60)
else:
    out = out + str(ans%60)
print(out)

[e1,e2] = map(int,input().split(':'))
[s1,s2] = map(int,input().split(':'))

total1 = e1*60 + e2;
total2 = s1*60 + s2;
ans = 0
if total1 >= total2 :
    ans = total1 - total2
else:
    ans = 1440 - total2 + total1
print('{:02}:{:02}'.format(int(ans/60),int(ans%60)))

def ss(a):
    if a > 9:
        return str(a)
    else:
        return '0'+str(a)
a = [int(x) for x in input().split(':')]
b = [int(x) for x in input().split(':')]
h = a[0] - b[0]
m = a[1] - b[1]
hh = 0
while m < 0:
    m = 60 - abs(m)
    hh += 1
h -= hh
while h < 0:
    h = 24 - abs(h)
print(ss(h),':',ss(m),sep = '')

s = list(map(int, input().split(':')))
t = list(map(int, input().split(':')))

p = [0, 0]
if s[0] - t[0] < 0:
    p[0] = 24 - (t[0] - s[0])
else:
    p[0] = s[0] - t[0]

if s[1] - t[1] < 0:
    p[1] = 60 - (t[1] - s[1])
    if p[0] == 0:
        p[0] = 23
    else:
        p[0] -= 1
else:
    p[1] = s[1] - t[1]

if p[0] < 10:
    print('0', p[0], sep = '', end = ':')
else:
    print(p[0], end = ':')
if p[1] < 10:
    print('0', p[1], sep = '')
else:
    print(p[1])