#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,s,n) for(int i=(int)(s);i<(int)(n);i++) using namespace std; typedef long long int ll; typedef vector VI; typedef vector VL; typedef pair PI; const ll mod = 1e9 + 7; ll powmod(ll a, ll e) { ll sum = 1; ll cur = a; while (e > 0) { if (e % 2) { sum = sum * cur % mod; } cur = cur * cur % mod; e /= 2; } return sum; } int main(void) { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; ll prod = 1; REP(i, 1, 2 * n + 1) { prod = prod * i % mod; } prod *= powmod(2, mod - 1 - n); prod %= mod; cout << prod << "\n"; }