The last two problems had said that bro.kun was wealthy.In the senior three,bro.kun apply to take part in postgraduate entrance examination.He always watch the study video,so he buy an ipad.in few month,bro.kun want to change new one,but he don't have the reason.And he inquire that there are some thieves activate frquently.So he envisage that he'll have the reason to change new ipad if his old ipad have stolen.
multi group test,the first line input an integer N represent group of test number.
then the first line input two time format represent the thief's haunt time,the next line input two time format represent bro.kun's haunt time(both thief and bro.kun won't haunt pass than 5 hours,on bro.kun's haunt time,his ipad maybe lost,even though there just one minute).
2
12:20 13:20
12:00 12:30
12:00 14:00
14:10 14:30
YES
NO