Little H is so boring that he wants to generate an array of length $$$n$$$.
Little H uses the following method to generate the array.
Now little H want to know how many different arrays there are for a certain $$$n$$$。
Due to the limited ability of counting little H, you just need to output the answer modulo $$$10^9 + 7$$$.
There are several test cases.
The first line contains a single integer $$$T(1 \leq T \leq 10^3)$$$, denoting the number of test cases. Then follow all the test cases.
For each test case, only one line which contains a single integer $$$n(1 \leq n \leq 10^6)$$$, denoting the length of the array little H wants to generate.
For each test case, print a integer in one line which denoting the answer.
3 1 100 1000000
1 988185646 617521033
| Name |
|---|


