#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,a,n) for(int (i)=(a); (i)<(n); (i)++) #define repq(i,a,n) for(int (i)=(a); (i)<=(n); (i)++) #define repr(i,a,n) for(int (i)=(a); (i)>=(n); (i)--) #define int long long int template void chmax(T &a, T b) {a = max(a, b);} template void chmin(T &a, T b) {a = min(a, b);} template void chadd(T &a, T b) {a = a + b;} typedef pair pii; typedef long long ll; int dx[] = {0, 0, 1, -1}; int dy[] = {1, -1, 0, 0}; constexpr ll INF = 1001001001001001LL; constexpr ll MOD = 1000000007LL; // ModInt begin ll mod_pow(ll x, ll n) {return (!n)?1:(mod_pow((x*x)%MOD,n/2)*((n&1)?x:1))%MOD;} struct ModInt { ll v; ModInt(ll a = 0) : v(((a%MOD) + MOD) % MOD) {} ModInt operator+ ( const ModInt& b ) const {return (v + b.v) % MOD;} ModInt operator- ( const ModInt& b ) const {return (v - b.v + MOD) % MOD;} ModInt operator* ( const ModInt& b ) const {return (v * b.v) % MOD;} ModInt operator/ ( const ModInt& b ) const {return (v * mod_pow(b.v, MOD-2)) % MOD;} }; bool operator==(ModInt a, ModInt b) {return a.v == b.v;} ModInt& operator+=(ModInt& a, ModInt b) {return a = a + b;} ModInt& operator-=(ModInt& a, ModInt b) {return a = a - b;} ModInt& operator*=(ModInt& a, ModInt b) {return a = a * b;} ModInt& operator/=(ModInt& a, ModInt b) {return a = a / b;} ostream& operator<<(ostream& out, ModInt a) {return out << a.v;} istream& operator>>(istream& in, ModInt& a) { ll v; in >> v; a = ModInt(v); return in; } // ModInt end int N; signed main() { cin >> N; ModInt ans(1); int cur = 1; rep(i,0,N) { ans *= (cur * (cur+1)) / 2; cur += 2; } cout << ans << endl; return 0; }