#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void read(T &a) {
  T res = 0, tmp = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') tmp = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    res = (res << 1) + (res << 3) + (ch ^ 48), ch = getchar();
  a = res * tmp;
}
const long long mod = 1e9 + 7;
const long long maxn = 1e5 + 10;
long long inv[maxn];
long long n, ans = 1;
signed main() {
  read(n);
  inv[1] = 1;
  for (register long long i = 2; i <= n; ++i)
    inv[i] = (mod - mod / i) * inv[mod % i] % mod;
  for (register long long i = 1; i <= n; ++i)
    ans = ans * inv[i] % mod * (n + i) % mod;
  printf("%lld\n", ((ans - n) % mod + mod) % mod);
  return 0;
}
