#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int d[2];
  d[0] = 1;
  d[1] = 1;
  for (int i = 0; i < (n); i++) {
    int p = i % 2;
    int q = (i + 1) % 2;
    d[q] = (d[q] + d[p]) % MOD;
  }
  int res = d[0] + d[1];
  res -= 2;
  res %= MOD;
  res += MOD;
  res %= MOD;
  cout << res << "\n";
  return 0;
}
