#include using namespace std; typedef long long ll; int mpow(int a,int b,int mod) { int ans=1; while (b) { if (b&1) ans=(ll)ans*a%mod; a=(ll)a*a%mod; b>>=1; } return ans; } int main() { int n; cin>>n; int mod=1e9+7; int a=1; for (ll i=2;i<=2*n;i++) a=a*i%mod; cout<<(ll)a*mpow(mpow(2,n,mod),mod-2,mod)%mod<