Reduce to one#10272

Reduce to one

1 second
128 megabytes
Very easy

Consider a list of integers . Initially, contains all integers from to , each exactly once (later, the list may contain multiple copies of some numbers). The order of elements in does not matter. You need to perform the following operation n - 1 times:

As a result, the list will contain exactly one number. Find the maximum possible value of this number. Since the answer can be large, print it modulo 10^9 + 7.

Input

The first line contains the number of test cases . Each of the next lines contains one integer n~(1 \le n \le 10^6).

Output

For each test case, print one integer — the maximum possible value of the last number in the list, computed modulo 10^9 + 7.

Examples

Example 1

Loading
Loading