#include <bits/stdc++.h>
using namespace std;
long long fact[200010 + 1], MOD = 1e9 + 7;
long long modex(long long a, long long b) {
  long long ans = 1LL;
  while (b > 0) {
    if (b % 2) {
      ans *= a;
      ans %= MOD;
    }
    a *= a;
    a %= MOD;
    b /= 2LL;
  }
  return ans;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  long long x = 1LL;
  cin >> n;
  fact[0] = 1LL;
  for (int i = 1; i <= 200010; i++, x++) {
    fact[i] = fact[i - 1] * x;
    fact[i] %= MOD;
  }
  x = (fact[(2 * n) - 1] * modex(fact[n], MOD - 2)) % MOD;
  x *= modex(fact[n - 1], MOD - 2);
  x %= MOD;
  x *= 2LL;
  x %= MOD;
  x -= n;
  if (x < 0) x += MOD;
  cout << x << "\n";
  return 0;
}
