#include <bits/stdc++.h>
using namespace std;
long long res = 1;
long long n;
long long inv(int arg) {
  long long res = arg;
  string e = "111011100110101100101000000101";
  for (int i = 1; i < e.size(); i++) {
    res *= res;
    res %= 1000000007;
    if (e[i] == '1') {
      res *= arg;
      res %= 1000000007;
    }
  }
  return res;
}
long long fac(int arg) {
  long long res = 1;
  for (int i = 2; i <= arg; i++) {
    res *= i;
    res %= 1000000007;
  }
  return res;
}
long long s;
int main() {
  cin >> n;
  s = 0;
  res = 1;
  for (int i = 0; i <= n; i++) {
    res = (((res * (n + 1 + i) % 1000000007) * inv(i + 1)) % 1000000007 +
           1000000007) %
          1000000007;
    res %= 1000000007;
    s += res;
    s %= 1000000007;
  }
  cout << s << endl;
  return 0;
}
