A herd of horseys is heading to the International Olympiad for Horses in Teams (IOHT).

They are currently positioned at cell on a rectangular board of size . They can move only by making L-shaped jumps: tiles in one direction (either horizontal or vertical) and then tiles in a perpendicular direction.
Their goal is to reach the cell where the IOHT is held. However, they do not know its location in advance. They ask for your help to determine whether it is possible for them to visit every cell on the board using only these L-shaped jumps.
Input data
The first line of the input file contains a single integer , the number of test cases. test cases follow, each on a new line.
Each test case consists of:
- a line containing integers , , , and .
Output data
The output file must contain lines, each consisting of a single string: the -th line must be YES if it is possible to visit every cell in the -th test case, and NO otherwise.
Constraints and clarifications
- .
- .
- .
| # | Score | Constraints |
|---|---|---|
| 1 | 0 | Examples. |
| 2 | 22 | . |
| 3 | 17 | and the sum of over the testcases does not exceed . |
| 4 | 61 | No additional constraints. |
Example 1
stdin
1
4 4 3 2
stdout
NO
Explanation
In the first sample case, not every cell is reachable using only L-shaped moves. All reachable cells are circled in red in the figure below.

Example 2
stdin
2
2 2 5 7
8 8 1 2
stdout
NO
YES
Explanation
In the second sample case:
- On the board, the horseys cannot make any moves, so not all cells are reachable.
- On the board, it can be shown that all cells are reachable.