There is a special array created by Barbarian for his beautiful Arrayland where is always.
Each is generated as:
.
Input:
The first line contains an integer denoting the number of test cases. Next line contains integers , denoting the index of the array for which you need to print the answer.
Output:
Print corresponding to the N in a separate line for each test case.
Constraint: