#include <bits/stdc++.h>
using namespace std;
long long lgput(long long b, long long e) {
  long long ret = 1;
  while (e) {
    if (e & 1) ret = (ret * b) % 1000000007;
    b = (b * b) % 1000000007;
    e >>= 1;
  }
  return ret;
}
long long comb(long long n, long long k) {
  if (2 * k > n) return comb(n, n - k);
  long long a = 1, b = 1;
  for (long long i = n - k + 1; i <= n; i++) {
    a = (a * i) % 1000000007;
  }
  for (long long i = 1; i <= k; i++) {
    b = (b * i) % 1000000007;
  }
  return (a * lgput(b, 1000000007 - 2)) % 1000000007;
}
int32_t main() {
  long long n;
  cin >> n;
  cout << ((2 * comb(2 * n - 1, n)) % 1000000007 - n + 1000000007) % 1000000007;
}
