#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  vector<long long> dp(n + 1, 0);
  long long s_odd = 0, s_even = 0;
  for (long long i = 1; i <= n; i++) {
    dp[i] = 1;
    if (i & 1) {
      dp[i] += s_even;
      s_odd += dp[i];
    } else {
      dp[i] += s_odd;
      s_even += dp[i];
    }
    s_even %= 1000000007;
    s_odd %= 1000000007;
  }
  s_even += s_odd;
  s_even %= 1000000007;
  cout << s_even;
  return 0;
}
