You are given a number N, you need to write a program to find the sum of all elements in the N-th row of above series.

Input:
First line of input contains a single integer T which denotes the number of test cases. First line of each test case contains a single intger N.

Output:
For each test case, print the sum of all the elements present in Nth row of above series.