Prakul has been working hard setting problems for Codecraft. When he's deep in thought, he likes jumping around his room in weird but specific ways. After some time, he wonders if jumping in this manner can cover all the tiles of his room.
Prakul's room can be considered as a grid $$$A$$$ consisting of $$$n$$$ rows and $$$m$$$ columns. He starts walking from $$$A_{1,1}$$$. If he is currently at $$$A_{i,j}$$$ he can do either of the following moves:
A special restriction is that he can start with either move, but must alternate between them.
Note that his room is quite special as it wraps around itself. Moving one step right from the $$$m$$$-th column places him in the $$$1$$$-st column. Similarly, moving one step down from the $$$n$$$-th row places him in the $$$1$$$-st row.
Since he still has to work on problemsetting, he needs your help. Determine if he can visit all tiles in $$$A$$$ in a finite number of jumps.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The only line of each test case contains four integers $$$n, m, a, b$$$ ($$$1 \leq n, m, a, b\leq 10^{9}$$$).
For each test case, print "YES" if Prakul can cover all the tiles of his room, and "NO" otherwise.
You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses.
101 1 1 12 2 1 14 2 2 16 9 6 767 42 42 673411 4134 32 2390234 143124 232 32369387963 98793214 9791 4324786985865 578977 899368 4476051000000000 1000000000 1000000000 1000000000
YESYESNONOYESNONONOYESNO
In the second test case: $$$n=2$$$, $$$m=2$$$, $$$a=1$$$, $$$b=1$$$. One possible way to cover the grid is if Prakul starts by moving down:
In the third test case: $$$n=4$$$, $$$m=2$$$, $$$a=2$$$, $$$b=1$$$. If Prakul starts by moving down, the moves look like:
In this case, the tiles $$$\{(2, 1), (2, 2), (4, 1), (4, 2)\}$$$ remain unvisited forever. Since not all tiles can be covered, the answer is "NO". It can be shown that even if Prakul started by moving right in the first move, the answer would not have changed.
| Name |
|---|


