#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007L;
long long binary_power(long long a, long long b, long long mod) {
  long long res = 1;
  while (b > 0) {
    if (b % 2 == 0) {
      a = (a * a) % mod;
      b /= 2;
    } else {
      res = (res * a) % mod;
      b -= 1;
    }
  }
  return res;
}
long long cnk_mod(long long n, long long mod) {
  long long result = 0;
  long long cnk = 1;
  for (int i = 1; i <= n + 1; ++i) {
    cnk = (cnk * (n + i)) % mod;
    long long pow = binary_power(i, mod - 2, mod);
    cnk = (cnk * pow) % mod;
    result = (result + cnk) % mod;
  }
  return result;
}
int main() {
  long long n;
  cin >> n;
  cout << cnk_mod(n, MOD);
  return 0;
}
