Generations of Tribbles

No attempts yetTime limit2sMemory limit128 MB

Problem

Koong has nothing to do in the army. So he wants to build a Fibonacci sequence of his own. The usual Fibonacci is too simple for him, so he wanted something heavier, and he came up with the sequence below. Writing his own Fibonacci function as koong(n)koong(n),

n < 2 :                         1
n = 2 :                         2
n = 3 :                         4
n > 3 : koong(n - 1) + koong(n - 2) + koong(n - 3) + koong(n - 4)

Compute Koong's Fibonacci yourself.

Input

The first line contains the number of test cases tt (0<t<690 < t < 69). Each of the next tt lines contains one integer nn (0n670 \le n \le 67), the index of the Fibonacci value to compute.

Output

For each test case, print Koong's Fibonacci value on its own line.