#include <bits/stdc++.h>
using namespace std;
long long n;
const long long P = 1000000007;
inline long long read() {
  long long w = 0;
  char ch = getchar();
  while (ch > '9' || ch < '0') ch = getchar();
  while (ch >= '0' && ch <= '9') {
    w = (w << 3) + (w << 1) + (ch ^ 48);
    ch = getchar();
  }
  return w;
}
inline long long ksm(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b & 1) res = res * a % P;
    a = a * a % P;
    b >>= 1;
  }
  return res;
}
int main() {
  n = read();
  long long res1 = 1, res2 = 1;
  for (long long i = 1; i <= (n << 1); i++) res1 = res1 * i % P;
  for (long long i = 1; i <= n; i++) res2 = res2 * i % P;
  long long ans = res1 * ksm(res2 * res2 % P, P - 2);
  printf("%lld\n", (ans - (long long)n + P) % P);
  return 0;
}
