#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:256000000")
using namespace std;
const int mod = 1000000007;
int d[1000006][2];
int main() {
  int n;
  cin >> n;
  d[0][0] = d[0][1] = 1;
  for (int i = 1; i <= int(n); i++) {
    for (int j = 0; j < int(2); j++) {
      d[i][j] = d[i - 1][j];
      if ((i & 1) == j) d[i][j] = (d[i][j] + d[i - 1][j ^ 1]) % mod;
    }
  }
  int ans = (d[n][0] + d[n][1]) % mod;
  cout << (ans + mod - 2) % mod << endl;
  return 0;
}
