Problem1242--rich bro.kun(3)

1242: rich bro.kun(3)

[Creator : ]
Time Limit : 1 sec  Memory Limit : 128 MB

Description

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.

Input

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

Output

for multi group test,output is any possibility that bro.kun change a new ipad.

Sample Input Copy

2
12:20 13:20
12:00 12:30
12:00 14:00
14:10 14:30

Sample Output Copy

YES
NO

Source/Category