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