There are multiple test cases. The first line of input contains an integer, indicating the number of test cases.
For each test case, there is only one line containing an integerIt's guaranteed that the sum of(
)
of all test cases will not exceed
.
For each test case, output an integerin the first line. In the next
lines, each contains two integers
and
(
), denoting the
-th element in subset
and
.
If there are multiple solutions, you can output any of them.