#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> dp(n + 1, 1);
  long long odd = dp[1];
  long long even = 0;
  for (int i = 2; i <= n; i++) {
    if (i % 2 == 0) {
      dp[i] += odd;
      if (even + dp[i] >= 1000000007) even %= 1000000007;
      even += dp[i];
    } else {
      dp[i] += even;
      if (odd + dp[i] >= 1000000007) odd %= 1000000007;
      odd += dp[i];
    }
  }
  long long ans = 0;
  for (int i = 1; i <= n; i++) {
    ans += dp[i];
    ans %= 1000000007;
  }
  cout << ans;
  return 0;
}
