#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
constexpr ll mod = ll(1e9 + 7);
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int TT = 1;
  while (TT--) {
    ll n;
    cin >> n;
    vector<ll> dp(n);
    ll sum[2] = {0, 0};
    ll ans = 0;
    for (int i = 0; i < n; ++i) {
      dp[i] = sum[1 - (i & 1)] + 1;
      dp[i] %= mod;
      sum[i & 1] += dp[i];
      sum[i & 1] %= mod;
      ans += dp[i];
      ans %= mod;
    }
    cout << ans << '\n';
  }
}
