Jim likes to play with laser beams.
Jim stays at point .
There is a mirror at point and a wall between points and .
Jim wants to find out if he can point the laser beam on the mirror.
Input Format
First line contains the number of test cases, .
Each subsequent line contains one test case: space separated integers that denote endpoints of the wall , and position of the mirror .
Output Format
The answer for each test case: Display YES
if Jim can point the laser beam to the mirror, otherwise display NO
.
Constraints
Mirror doesn't have common points with wall.
Wall doesn't pass through the point .
Sample Input
5
1 2 2 1 2 2
-1 1 1 1 1 -1
1 1 2 2 3 3
2 2 3 3 1 1
0 1 1 1 0 2
Sample Output
NO
YES
NO
YES
NO