Permutation and noitatumreP

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Bobo would like to count the number of permutations (p_1,p_2,,p_n)(p\_1, p\_2, \dots, p\_n) of 1,2,,n\\{1, 2, \dots, n\\} such that the sequence q=(p_1,p_2,,p_n,p_n,p_n1,,p_1)q = (p\_1, p\_2, \dots, p\_n, p\_n, p\_{n - 1}, \dots, p\_1) does not contain four indices 1a<b<c<d2n1 \leq a < b < c < d \leq 2n which satisfy q(a)<q(c)<q(d)<q(b)q(a) < q(c) < q(d) < q(b).

As this number may be very large, Bobo is only interested in its remainder modulo (109+7)(10^9+7).

입력

The input contains zero or more test cases, and is terminated by end-of-file.

Each test case contains an integer nn (1n1091 \leq n \leq 10^9). 

It is guaranteed that the number of test cases does not exceed 21042 \cdot 10^4.

출력

For each test case, output an integer which denotes the number of ways modulo (109+7)(10^9+7).