#include "bits/stdc++.h" using namespace std; #define mod 1000000007 #define dom 998244353 #define all(c) begin(c),end(c) #define rep(i,a,b) for(int i=(a);i<(b);i++) #define rrep(i,a,b) for(int i=(b)-1;i>=(a);i--) template bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, const T &b) { if (b < a) { a = b; return true; } return false; } #define long long long #define List vector #define var auto #define Count size() #define Length size() int dd[] = { 0, 1, 0, -1, 0 }; //→↓←↑ long powmod(long a, long b, long p) { if (b == 0) return 1; if (b % 2 == 0) { long d = powmod(a, b / 2, p); return d * d % p; } else { return a * powmod(a, b - 1, p) % p; } } void solve() { int K; cin >> K; if (K % 2 == 1) { cout << 0 << endl; } K >>= 1; long bunshi = 1; long bunbo = 1; for (int i = 1; i <= K; i++) { bunshi = bunshi * (i + K) % mod; bunbo = bunbo * i % mod; } cout << (bunshi * powmod(bunbo, mod - 2, mod) % mod) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); return 0; }