#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
int fastPow(int v, int w) {
  ll t = v;
  ll res = 1;
  while (w) {
    if (w & 1) {
      res *= t;
      res %= MOD;
    }
    t *= t;
    t %= MOD;
    w /= 2;
  }
  return res;
}
int main() {
  int n;
  cin >> n;
  ll p = 1;
  for (int i = 1; i <= n - 1; i++) {
    p *= i;
    p %= MOD;
  }
  ll q = 1;
  for (int i = 1; i <= n - 1; i++) {
    q *= (2 * n - i);
    q %= MOD;
  }
  ll d = fastPow(p, MOD - 2);
  ll ans = (q * d) % MOD;
  ans *= 2;
  ans -= n;
  ans = (ans + MOD) % MOD;
  printf("%lld", ans);
}
