#include <bits/stdc++.h>
using namespace std;
int g[1005][1005], f[1005][1005], h[1005][1005], ans;
int x, n;
int main() {
  scanf("%d", &n);
  for (int i = 0; i <= n; i++)
    for (int j = i; j <= n; j++)
      f[i][j] = (f[i - 1][j] + f[i][j - 1] + (i + j & 1)) % 1000000007;
  printf("%d", f[n][n]);
}
