#include <bits/stdc++.h>
using namespace std;
void scan(int &x) {
  register int c = getchar();
  x = 0;
  int neg = 0;
  for (; ((c < 48 || c > 57) && c != '-'); c = getchar())
    ;
  if (c == '-') {
    neg = 1;
    c = getchar();
  }
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
  if (neg) x = -x;
}
const int M = 2000005;
long long f[M];
long long exp(long long a, long long b) {
  long long ans = 1;
  while (b > 0) {
    if (b & 1) {
      ans *= a;
      ans %= 1000000007;
    }
    a *= a;
    b /= 2;
    a %= 1000000007;
  }
  return ans;
}
int main() {
  long long n, ans, x;
  scanf("%lld", &n);
  n++;
  f[0] = 1;
  for (int i = 1; i < M; i++) {
    f[i] = f[i - 1] * i;
    if (f[i] >= 1000000007) f[i] %= 1000000007;
  }
  ans = f[2 * n];
  x = (f[n] * f[n]) % 1000000007;
  x = exp(x, 1000000007 - 2);
  ans *= x;
  ans %= 1000000007;
  ans = (ans - 1 + 1000000007) % 1000000007;
  printf("%lld\n", ans);
  return 0;
}
