#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
vector<long long> sil(1000000);
long long Pot(long long p, long long w) {
  if (w == 1) return p;
  if (w % 2 == 1) return (p * Pot(p, w - 1)) % MOD;
  long long x = Pot(p, w / 2);
  return (x * x) % MOD;
}
long long Inv(long long a) { return Pot(a, MOD - 2); }
long long C(long long n, long long k) {
  return (sil[n] * Inv((sil[n - k] * sil[k]) % MOD)) % MOD;
}
int main() {
  ios_base::sync_with_stdio(0);
  sil[0] = 1;
  for (long long i = 1; i < 1000000; ++i) sil[i] = (sil[i - 1] * i) % MOD;
  int n;
  cin >> n;
  long long odp = (2 * C(2 * n - 1, n - 1)) % MOD;
  odp -= n;
  if (odp < 0) odp += MOD;
  cout << odp;
  return 0;
}
