#include <bits/stdc++.h>
using namespace std;
long long fact[1000001];
long long tfac[1000001];
long long cnk(long long n, long long k) {
  return fact[n] * tfac[n - k] % 1000000007 * tfac[k] % 1000000007;
}
long long deg(long long nu) {
  long long cur, res;
  cur = nu;
  res = 1;
  long long po = 1000000007 - 2;
  while (po) {
    if (po & 1) {
      res *= cur;
      res %= 1000000007;
    }
    po /= 2;
    cur *= cur;
    cur %= 1000000007;
  }
  return res % 1000000007;
}
int main() {
  fact[0] = 1;
  for (int i = 1; i < 1000001; i++) {
    fact[i] = fact[i - 1] * i % 1000000007;
  }
  for (int i = 0; i < 1000001; i++) {
    tfac[i] = deg(fact[i]) % 1000000007;
  }
  long long n;
  cin >> n;
  printf("%ld", (2 * cnk(2 * n - 1, n) - n) % 1000000007);
}
