#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7, nax = 1e6 + 5;
int n, dp[nax], sum[nax];
void add_self(int& a, int b) {
  a += b;
  if (a >= mod) a -= mod;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    dp[i] = 1;
  }
  int sum_odd = 1, sum_even = 0;
  for (int i = 2; i <= n; i++) {
    if (i & 1) {
      add_self(dp[i], sum_even);
      add_self(sum_odd, dp[i]);
    } else {
      add_self(dp[i], sum_odd);
      add_self(sum_even, dp[i]);
    }
  }
  int ans = 0;
  for (int i = 1; i <= n; i++) add_self(ans, dp[i]);
  cout << ans << endl;
  return 0;
}
