You are given a binary matrix $$$M$$$ of size $$$n \times m$$$, where rows are numbered from $$$1$$$ to $$$n$$$ from top to bottom and columns are numbered from $$$1$$$ to $$$m$$$ from left to right. The position $$$(r, c)$$$ denotes the cell in row $$$r$$$ and column $$$c$$$, where $$$r$$$ and $$$c$$$ are integers such that $$$1 \le r \le n$$$ and $$$1 \le c \le m$$$.
Initially, all entries of the matrix are $$$1$$$, except for exactly two cells which contain $$$0$$$. The two cells containing $$$0$$$ are located at positions $$$(r_1, c_1)$$$ and $$$(r_2, c_2)$$$.
You can apply the following two types of operations on the matrix:
In summary, in one move, you can select any two adjacent cells (sharing a side) in the matrix, and decrease both of the entries by $$$1$$$. You can apply the operations any number of times in any order. Your task is to determine whether it is possible to transform the matrix into a null matrix (i.e., a matrix where all entries are $$$0$$$).
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of test cases.
Each test case consists of a single line containing six space-separated integers $$$n$$$, $$$m$$$, $$$r_1$$$, $$$c_1$$$, $$$r_2$$$, $$$c_2$$$ ($$$1 \le n, m \le 5 \cdot 10^5; \ 1 \le r_1, r_2 \le n; \ 1 \le c_1, c_2 \le m; \ (r_1, c_1) \ne (r_2, c_2); \ n \cdot m \gt 2$$$) — the dimensions of the matrix and the positions of the two cells initially containing $$$0$$$.
It is guaranteed that the sum of $$$n \cdot m$$$ over all test cases does not exceed $$$10^6$$$.
For each test case, output a single word in a line — YES if it is possible to transform the matrix into a null matrix, and NO otherwise.
52 6 1 3 2 54 4 1 1 2 12 2 1 1 2 23 3 2 1 3 38 7 5 2 2 4
YESYESNONOYES
The following is an illustration of one of the possible sequences of operations to nullify the given matrix for the first test case:
| Название |
|---|


