#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y) {
  if (y == 0) return 1;
  if (y % 2)
    return (power((x * x) % 1000000007, (y - 1) / 2) * x) % 1000000007;
  else
    return power((x * x) % 1000000007, y / 2);
}
int main() {
  long long n;
  cin >> n;
  long long div = 1;
  for (int i = 2; i < n; i++) {
    div = (div * i) % 1000000007;
  }
  long long sum = 1;
  for (int i = n + 1; i < n * 2; i++) {
    sum = (sum * i) % 1000000007;
  }
  div = power(div, 1000000005);
  cout << (((2 * (sum * div) % 1000000007) % 1000000007) - n) % 1000000007
       << endl;
  return 0;
}
