#KOPC12B. K12-Combinations

K12-Combinations

Given n find the value of ((nC1)2 + 2×(nC2)2 + 3×(nC3)2 + 4×(nC4)2 + ... + n×(nCn)2) % MOD, where MOD = 109+7.

Note: nCr is the number of ways of choosing r items from n items.

Input

The first line of input file contains T which denotes number of test cases. Each of the following line contains an integer n. T ≤ 1000 and n ≤ 106.

Output

The output must contain T lines each line corresponding to a testcase.

Example

Input:
2
1
2

Output: 1 6

</p>