#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B>
int print_value(A title, B val) {
  cout << title << " = " << val << "\n";
  return 1;
}
int break_point() {
  char c;
  while ((c = getchar()) != '\n')
    ;
  return 0;
}
template <typename A>
int logg(A v) {
  cout << v << "\n";
  return 0;
}
void read_intq(int &r) {
  r = 0;
  char c;
  while (1) {
    c = getchar();
    if (c != ' ' && c != '\n') {
      r = c - '0';
      break;
    }
  }
  while (1) {
    c = getchar();
    if (c == ' ' || c == '\n') return;
    r = r * 10 + (c - '0');
  }
}
void read_llq(long long &r) {
  r = 0;
  char c;
  while (1) {
    c = getchar();
    if (c != ' ' && c != '\n') {
      r = c - '0';
      break;
    }
  }
  while (1) {
    c = getchar();
    if (c == ' ' || c == '\n') return;
    r = r * 10 + (c - '0');
  }
}
char get_char() {
  char c;
  while (1) {
    c = getchar();
    if (c != '\n' && c != ' ') return c;
  }
}
void run();
int main() {
  srand(time(NULL));
  do {
    run();
    if (0) {
      0 ? printf("-------------------------------\n") : 0;
      0 ? printf("-------------------------------\n") : 0;
    }
  } while (0);
  return 0;
}
const long long MOD = 1e9 + 7;
long long binpow(long long a, long long b) {
  if (b == 0) return 1;
  if (b == 1) return a;
  long long c = binpow(a, b >> 1);
  return (((c * c) % MOD) * (b & 1 ? a : 1)) % MOD;
}
void run() {
  int n;
  scanf("%d", &n);
  n++;
  long long top = 2;
  for (int i = 2; i < 2 * n; i++) {
    top *= i;
    top %= MOD;
  }
  0 ? print_value("top", top) : 0;
  long long bottom = 1;
  for (int i = 2; i < n; i++) {
    bottom *= i;
    bottom %= MOD;
    bottom *= i;
    bottom %= MOD;
  }
  bottom *= n;
  bottom %= MOD;
  0 ? print_value("bottom", bottom) : 0;
  long long res = top * binpow(bottom, MOD - 2);
  res %= MOD;
  res--;
  if (res < 0) res += MOD;
  printf("%lld", res);
  putchar('\n');
}
