Pell numbers are numbers that are similar to the Fibonacci numbers and are generated by below formula

P_{n} = 2*P_{n-1} + P_{n-2}

with seeds P_{0} = 0 and P_{1} = 1

Your task is to print Nth pell number.

**Input:**

First line consists of T test cases. Only line of every test case consists of N.

**Output:**

Single line output, print the Nth pell number.

**Constraints:**

1<=T<=100

1<=N<=100

**Example:
Input:**

1

4

12