Given $Q$ cases.
For each case, you are given an integer $N_ i$. Find all pairs of non-negative integers (a,b) statisfying $N_ i=a^ 2+b^ 2$.
$Q$
$N_ 0$
$N_ 1$
$\vdots$
$N_ {Q - 1}$
For each test case, let $n$ be the number of pairs $(a,b)$ that satisfy the condition. Output a total of $n+1$ lines in the following format. The output order can be arbitrary.
$n$
$a$ $b$
$\vdots$
$a$ $b$
11 0 1 2 3 4 5 6 7 8 9 10
1 0 0 2 0 1 1 0 1 1 1 0 2 0 2 2 0 2 1 2 2 1 0 0 1 2 2 2 0 3 3 0 2 3 1 1 3
10 5 25 125 13 65 998244353 1000000007 1000000009 536870912 1073741824
2 1 2 2 1 4 4 3 0 5 5 0 3 4 4 11 2 5 10 10 5 2 11 2 2 3 3 2 4 7 4 8 1 1 8 4 7 2 31348 3943 3943 31348 0 2 3747 31400 31400 3747 1 16384 16384 2 0 32768 32768 0
| No. | Testdata Range | Score |
|---|