Given two integers $$$n$$$ and $$$m$$$, you need to construct a matrix $$$M$$$ satisfying the following constraints:
If multiple solutions exist, print any one of them. If there is no solution, report it.
The first line contains an integer $$$T$$$ ($$$1 \le T \le 10^5$$$), denoting the number of test cases.
For each test case, the only line contains two integers $$$n$$$ and $$$m$$$ ($$$1\le n,m \le 10^6$$$, $$$1 \le n\times m \le 10^6$$$), denoting the number of rows and columns respectively.
It is guaranteed that the sum of $$$n \times m$$$ over all test cases does not exceed $$$5 \times 10^6$$$.
For each test case, if there is no solution, print "No" (without quotes) in one line. If the solution exists, print "Yes" (without quotes) in the first line. Then print $$$n$$$ lines, the $$$i$$$-th of which contains $$$m$$$ integers $$$M_{i,1}, M_{i,2}, \ldots, M_{i,m}$$$, describing the $$$i$$$-th row of the matrix.
2 2 3 1 1
Yes 0 1 1 1 1 0 No
In the first sample case, the number of mixed subrectangles and pure subrectangles are both $$$9$$$.
In the second sample case, the only subrectangle is the whole matrix that must be pure, so the number of mixed subrectangles and the number of pure subrectangles must be $$$0$$$ and $$$1$$$ respectively, which are not equal.
| Name |
|---|


