Mog studies the burrows of two ground squirrels. The ground is an -dimensional grid, whose -th axis has length . Each cell has integer coordinates with (). Two cells are adjacent if they differ by in exactly one coordinate and agree in every other coordinate.
The first squirrel starts at , and the second starts at . These starting cells are distinct. Each burrow must satisfy all of the following conditions.
A burrow consisting of one cell is allowed. The two burrows must not share a cell.
Determine whether every cell can belong to exactly one of the two burrows. If it is possible, construct one such partition.
The input is given from Standard Input in the following format:
For each test case, if no valid partition exists, print NO.
Otherwise, print YES, followed by integers, one for each cell. List cells in lexicographic order of their coordinates. Print for a cell in the first burrow, or for a cell in the second burrow. At the first coordinate where two cells differ, the cell with the smaller value comes first. Thus, the last coordinate varies fastest.
is the number of test cases. Each case is given in the following format:
is the number of dimensions, and is the length of axis . and are the starting cells of the first and second squirrels, respectively.
12Separate output values with whitespace. The printed partition must satisfy every condition. If there are multiple solutions, print any of them.
| 3 | 60 | No additional constraints. |