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