#include <bits/stdc++.h>
using namespace std;
int a[1000001] = {0};
int main() {
  a[1] = 1;
  int zero = 0, one = 1;
  for (int i = 2; i <= 1000000; ++i) {
    if (i % 2 == 0) {
      zero = (zero + one + 1) % 1000000007;
    } else {
      one = (zero + one + 1) % 1000000007;
    }
    a[i] = (one + zero) % 1000000007;
  }
  for (int n; cin >> n;) cout << a[n] << endl;
  return 0;
}
