---
{"languages_supported":{"0":"NA"},"title":"BWALL","category":"NA","old_version":true,"problem_code":"BWALL","tags":{"0":"NA"},"layout":"problem"}
---
<h3> All submissions for this problem are available. </h3><p>In order to protect the southern border of Bytelandian Empire against intrusions by various nomadic groups, the Emperor of Byteland has decided to build a wall along the southern border. The best architect Johny is recruited for the task.</p>
<p>In order to minimise the cost of raw material, Johny is restricted to use only following two kinds of building blocks:<br />X # <br />XX <br />The height of the wall is fixed and is 2 units, but the length of the wall varies. As a part of his job Johny needs to find out the number of ways he can construct the wall using above two types of building blocks where the length of the wall is specified. Write a program to help Johny.</p>
<h3>Input Format:</h3>
<p>The first line contains the number of test cases T followed by T lines. Each of the next lines contains an integer N representing the length of the wall.</p>
<h3>Output Format:</h3>
<p>Print T lines one for each test case, containing an integer that represents the number of ways of constructing the wall, modulo 1000000007.</p>
<h3>Example:</h3>
<pre><b>Sample Input:</b>
3
7
2
13
<br />
<b>Sample Output:</b>
655
5
272767
<b>Constraints:</b>
1<=T<=1000
1<=N<=10^9
<b>Explanation of 2nd Test Case</b>
N=2
The wall can be constructed in following 5 ways:
##
##
<br />
X#
XX
<br />
#X
XX
<br />
XX
X#
<br />
XX
#X
</pre>
<p><br /></p>