#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000000007;
int a[200001];
int b[200001];
int main() {
  long long n, x, ans = 1;
  cin >> n;
  for (int i = 2; i < n; i++) {
    x = i;
    while (x % 2 == 0) {
      b[2]++;
      x /= 2;
    }
    for (int j = 3; j <= sqrt(x); j += 2)
      while (x % j == 0) {
        b[j]++;
        x /= j;
      }
    b[x]++;
  }
  for (int i = n + 1; i < 2 * n; i++) {
    x = i;
    while (x % 2 == 0) {
      a[2]++;
      x /= 2;
    }
    for (int j = 3; j <= sqrt(x); j += 2)
      while (x % j == 0) {
        a[j]++;
        x /= j;
      }
    a[x]++;
  }
  for (int i = 2; i <= 200000; i++)
    for (int j = 0; j < a[i] - b[i]; j++) ans = (ans * i) % maxn;
  cout << ((ans * 2) - n) % maxn << endl;
  return 0;
}
