#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int n;
  cin >> n;
  unsigned long long red = 1, blue = 0;
  for (int i = 1; i < n; i++) {
    if (i % 2 == 0) {
      red += blue + 1;
      red %= 1000000007;
    } else {
      blue += red + 1;
      blue %= 1000000007;
    }
  }
  cout << (red + blue) % 1000000007;
  return 0;
}
