#include <bits/stdc++.h>
using namespace std;
long long fact[200001];
long long pw(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b % 2 == 0) {
      a = a * a % 1000000007;
      b /= 2;
    } else {
      res = res * a % 1000000007;
      b--;
    }
  }
  return res;
}
long long C(long long n, long long k) {
  long long res = fact[n];
  res = res * pw(fact[k], 1000000007 - 2) % 1000000007;
  res = res * pw(fact[n - k], 1000000007 - 2) % 1000000007;
  return res;
}
signed main() {
  long long n = 0;
  cin >> n;
  long long r = 1;
  fact[0] = 1;
  for (long long i = 1; i <= 2 * n; i++) {
    r = r * i % 1000000007;
    fact[i] = r;
  }
  long long res = C(2 * n - 1, n - 1) * 2 % 1000000007;
  res = (1000000007 + res - n) % 1000000007;
  cout << res;
  return 0;
}
