#include <bits/stdc++.h>
using namespace std;
void FastIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cout.precision(15);
}
long long modpow(long long a, long long p, long long mod) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a) % mod;
    a = (a * a) % mod;
    p /= 2;
  }
  return ret % mod;
}
long long power(long long a, long long p) {
  long long ret = 1;
  while (p) {
    if (p & 1) ret = (ret * a);
    a = (a * a);
    p /= 2;
  }
  return ret;
}
long long mod = 1e9 + 7, fac[1000010], inv[1000010];
int main() {
  FastIO();
  fac[0] = 1;
  for (int i = 1; i < 1e6 + 3; i++) fac[i] = (i * fac[i - 1]) % mod;
  inv[0] = 1;
  for (int i = 1; i < 1e6 + 3; i++) inv[i] = modpow(fac[i], mod - 2, mod);
  int n;
  cin >> n;
  n++;
  long long ans = 0;
  for (int i = 1; i < n + 1; i++) {
    long long tmp = ((((fac[n] * inv[n - i]) % mod) * inv[i]) % mod) % mod;
    tmp = (tmp * tmp) % mod;
    ans = (ans + tmp) % mod;
  }
  cout << ans << '\n';
  return 0;
}
