Your friend Kaosar asked you to solve a problem.
He will give you an integer $$$n$$$ and a function $$$Q(n,m)$$$, where $$$$$$Q(n,m)=(x+\frac{1}{x^m})^n$$$$$$
He asked you to calculate the sum of all integers $$$m$$$ for which $$$Q(n,m)$$$ has a nonzero constant term.
The first line of the input will contain a single integer $$$t$$$ $$$(1 \le t \le 10^3)$$$ denoting the total number of test cases.
Next $$$t$$$ lines will contain a single integer $$$n$$$ $$$(1 \le n \le 10^9)$$$.
Print the sum of all integers $$$m$$$ for which $$$Q(n,m)$$$ has a nonzero constant term.
3123
0 1 2
In the first test case, only $$$m=0$$$ is valid.
In the second test case, $$$m=0$$$ and $$$m=1$$$ are valid.