#include <bits/stdc++.h>
using namespace std;
long long mod = 1000000007LL;
long long n;
long long power(long long a, long long B) {
  long long ret = 1;
  while (B) {
    if (B & 1) ret = (ret * a) % mod;
    a = (a * a) % mod;
    B >>= 1;
  }
  return ret;
}
long long rev(long long x) { return power(x, mod - 2); }
long long C(long long A, long long B) {
  long long ret = 1;
  for (long long i = A - B + 1; i <= A; i++) ret = (ret * i) % mod;
  for (long long i = 1; i <= B; i++) ret = (ret * rev(i)) % mod;
  return ret;
}
int main() {
  ios::sync_with_stdio(false);
  while (cin >> n) {
    cout << (2 * C(2 * n - 1, n - 1) - n + mod) % mod << endl;
  }
  return 0;
}
