For a given positive integer , find the smallest positive integer such that there exists an integer with
y^2 = n + x^2.
The first line contains an integer , the number of test cases. Each of the following lines contains an integer (1 \leq n \leq 10^9).
For each integer , output the value of on a separate line. If no such exists, output .
Example 1