Rahul is a very busy persion he dont wan’t to waste his time . He keeps account of duration of each and every work. Now he don’t even get time to calculate duration of works, So your job is to count the durations for each work and give it to rahul.
- First line will be given by N number of works
- Next N line will be given SH,SM,EH and EM each separated by space(SH=starting hr, SM=starting min, EH=ending hr, EM=ending min)
- N lines with duration HH MM(hours and minutes separated by space)