#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int x; cin >> x; unsigned long long int res = 1; thread t = thread([&res](int x) { for (int i = x; i > 0; i--) { res *= i; res %= 1000000007; } },x/2); t.join(); for (int i = x; i > x/2; i--) { res *= i; res %= 1000000007; } cout << res << "\n"; return 0; }