import java.io.*; import java.util.*; class Main { static final long MOD=1000000007; static final int N=400000; static long[] fact; static long[] invfact; static void initialize() { fact = new long[N]; invfact = new long[N]; fact[0] = invfact[0] = 1; for (int i = 1; i < N; ++i) fact[i] = (i * fact[i - 1]) % MOD; invfact[N-1]=powerMod(fact[N-1],MOD-2); for(int i=N-2;i>=0;--i) invfact[i] = invfact[i+1]*(i+1)%MOD; } static long powerMod(long x, long exponent) { long prod = 1; for (int i = 63; i >= 0; --i) { prod = (prod * prod) % MOD; if ((exponent & 1L << i) != 0) { prod = (prod * x) % MOD; } } return prod; } static long comb(int x, int y) { if (x < 0) { return 0; } if (y < 0 || y > x) { return 0; } long r = fact[x] * (invfact[x - y] * invfact[y] % MOD) % MOD; return r; } static long f(int x,int y){ if((x+y)%2!=0)return 0; return comb(x,(x+y)/2); } public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); initialize(); int n=sc.nextInt(); long ans=0; for(int i=n-1;i<=2*n-1;i+=2){ ans+=f(i,n-1)-f(i,n+1)+MOD; ans%=MOD; } out.println(ans); out.close(); } // http://codeforces.com/blog/entry/7018 //-----------PrintWriter for faster output--------------------------------- public static PrintWriter out; //-----------MyScanner class for faster input---------- public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } int[] nextIntArray(int n){ int[]r=new int[n]; for(int i=0;i