程序运行时间
def sswr(a):
if a-int(a)>=0.5:
return int(a+1)
else:
return int(a)
c1,c2 = input().split()
time = (sswr((int(c2)-int(c1))/100))
hour = time//3600
minute = (time%3600)//60
second = time - hour*3600-minute*60
print(str(hour).zfill(2)+':'+str(minute).zfill(2)+':'+str(second).zfill(2))