#include <bits/stdc++.h>
using namespace std;
int dp[1005][1005], a;
int main() {
  cin >> a;
  for (int x = 0; x <= a; x++) dp[x][0] = 1;
  long long b = 0;
  for (int x = 1; x <= a; x++) {
    for (int y = 1; y <= a; y++) {
      dp[x][y] = dp[x - 1][y] + dp[x][y - 1];
      if (y > x) dp[x][y] = 0;
      if ((x + y) % 2 == 1) b += dp[x][y];
      dp[x][y] %= 1000000007;
    }
  }
  b += (a + 1) / 2;
  cout << b % 1000000007 << endl;
  return 0;
}
