#include <bits/stdc++.h>
using namespace std;
const long long int m = 1000000007;
long long int me(long long int n, long long int p) {
  long long int res = 1, x = n;
  while (p > 0) {
    if (p & 1 == 1) res = (res * x) % m;
    p = p >> 1;
    x = (x * x) % m;
  }
  return res;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, u = 1, l = 1, ans;
  cin >> n;
  for (long long int i = 1; i < n; i++) {
    u *= (n + i);
    l *= i;
    if (u > m) u %= m;
    if (l > m) l %= m;
  }
  ans = me(l, m - 2);
  ans = (2 * u * ans - n) % m;
  cout << ans;
  return 0;
}
