There are N squares lining up in a row, numbered 1 through N from left to right. Initially, all squares are white. We also have N-1 painting machines, numbered 1 through N-1. When operated, Machine i paints Square i and i+1 black.

Snuke will operate these machines one by one. The order in which he operates them is represented by a permutation of (1, 2, ..., N-1), P, which means that the i-th operated machine is Machine P_i.

Here, the score of a permutation P is defined as the number of machines that are operated before all the squares are painted black for the first time, when the machines are operated in the order specified by P. Snuke has not decided what permutation P to use, but he is interested in the scores of possible permutations. Find the sum of the scores over all possible permutations for him. Since this can be extremely large, compute the sum modulo 10^9+7.

Constraints

* 2 \leq N \leq 10^6

Input

Input is given from Standard Input in the following format:


N


Output

Print the sum of the scores over all possible permutations, modulo 10^9+7.

Examples

Input

4


Output

16


Input

2


Output

1


Input

5


Output

84


Input

100000


Output

341429644
#include <iostream>
using namespace std;
constexpr int mod = 1000000007;
int n, inv[1000009];
int main() {
	cin >> n;
	inv[1] = 1;
	int cur = 1;
	for (int i = 2; i <= n; i++) {
		inv[i] = 1LL * inv[mod % i] * (mod - mod / i) % mod;
		cur = 1LL * cur * (i - 1) % mod;
	}
	int ret = 0;
	for (int i = n - 1; cur != 0; i--) {
		int x = 1LL * cur * inv[i] % mod * inv[i + 1] % mod * (2 * i - n + 2) % mod * (2 * i - n + 1) % mod;
		ret = (ret + 1LL * (cur - x + mod) * (i + 1)) % mod;
		cur = x;
	}
	cout << ret << "\n";
	return 0;
}