#include using namespace std; const int64_t MOD = 1e9+7; int64_t extgcd(int64_t a, int64_t b, int64_t& x, int64_t& y){ int64_t d = a; if(b != 0){ d = extgcd(b, a%b, y, x); y -= (a/b) * x; }else{ x = 1; y = 0; } return d; } int64_t inv_mod(int64_t a){ int64_t x, y; extgcd(a, MOD, x, y); return (MOD + x%MOD) % MOD; } int main(){ int K; cin >> K; if(K%2){ cout << 0 << endl; return 0; } int64_t ans = 1; for(int i=1; i<=K/2; i++){ ans = ans * i % MOD; } ans = inv_mod(ans); for(int i=K/2+1; i<=K; i++){ ans = ans * i % MOD; } cout << ans << endl; return 0; }