#P1968E. Cells Arrangement
Cells Arrangement
Description
You are given an integer . You choose cells in the grid where and .
Let be the set of distinct Manhattan distances between any pair of cells. Your task is to maximize the size of . Examples of sets and their construction are given in the notes.
If there exists more than one solution, you are allowed to output any.
Manhattan distance between cells and equals .
The first line contains a single integer () — the number of test cases.
Each of the following lines contains a single integer ().
For each test case, output points which maximize the size of . It is not necessary to output an empty line at the end of the answer for each test case.
Input
The first line contains a single integer () — the number of test cases.
Each of the following lines contains a single integer ().
Output
For each test case, output points which maximize the size of . It is not necessary to output an empty line at the end of the answer for each test case.
Note
In the first testcase we have . One of the possible arrangements is:

In the second testcase we have . The optimal arrangement is:

===.
For a possible arrangement is:

For a possible arrangement is:

For a possible arrangement is:
