Let denote the cell in the -th row from the top and the -th column from the left of an grid.
An L tile of length consists of one center cell and cells extending in a straight line from the center in each of two mutually perpendicular directions. It has cells in total and can be rotated freely.
There is one tile of each length . Place all the tiles aligned with the grid. Tiles may not extend outside the board or overlap each other, and must be the only uncovered cell.
Find one possible placement, or determine that it is impossible.
The input is given in the following format.
For each test case, if no placement exists, print -1 on a single line.
If a placement exists, print lines with integers each. The -th integer on the -th line is the length of the tile covering . Print for .
Each case is in the following format.
on the first line is the number of test cases. Each case is a single line containing .
0If there are multiple possible answers, you may print any of them.
| 3 | 13 |
| 4 | 14 |
| 5 | 50 | No additional constraints. |