#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 * 1000 + 100;
int n;
long long dp[maxn][3], inf = 1000 * 1000 * 1000 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  dp[1][1] = 2;
  dp[1][2] = 1;
  for (int i = 2; i <= n; i++) {
    if (i % 2 == 1) {
      dp[i][1] = (dp[i - 1][1] + dp[i - 1][2]) % inf;
      dp[i][2] = dp[i - 1][2];
    } else {
      dp[i][2] = (dp[i - 1][1] + dp[i - 1][2]) % inf;
      dp[i][1] = dp[i - 1][1];
    }
  }
  cout << (dp[n][1] + dp[n][2] - 2 + inf) % inf << endl;
  return 0;
}
