#include <bits/stdc++.h>
const int N = (int)1e5 + 7;
const int MOD = (int)1e9 + 7;
const long long INF = (long long)1e18;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<vector<long long>> dp(n + 1, vector<long long>(2));
  for (int i = 1; i <= n; i++) {
    if (i & 1) {
      dp[i][1] = (dp[i - 1][0] + dp[i - 1][1] + 1) % MOD;
      dp[i][0] = dp[i - 1][0];
    } else {
      dp[i][0] = (dp[i - 1][1] + dp[i - 1][0] + 1) % MOD;
      dp[i][1] = dp[i - 1][1];
    }
  }
  cout << (dp[n][0] + dp[n][1]) % MOD;
  return 0;
}
