#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
long long mpow(long long a, long long b) {
  if (b == 0) return 1LL;
  long long r = mpow(a, b / 2);
  r *= r;
  r %= MOD;
  if (b & 1) return (r * a) % MOD;
  return r;
}
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(false);
  long long n, num, den;
  cin >> n;
  num = den = 1;
  for (int i = 1; i < n + 1; ++i) {
    num *= (n + i);
    num %= MOD;
    den *= i;
    den %= MOD;
  }
  den = mpow(den, MOD - 2);
  long long ans = (num * den) % MOD;
  ans = (ans + MOD - n) % MOD;
  cout << ans << "\n";
  return 0;
}
