#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t, n, m, k, q, x, a, b, c, d, w;
  cin >> n;
  vector<long long int> dp(n), S(n);
  dp[0] = 1;
  S[0] = 1;
  long long int odd = 0, even = 1;
  for (int i = 1; i < n; i++) {
    if (i & 1) {
      dp[i] = even + 1;
      odd += dp[i];
    } else {
      dp[i] = odd + 1;
      even += dp[i];
    }
    dp[i] %= mod;
    odd %= mod;
    even %= mod;
  }
  a = 0;
  for (int i = 0; i < n; i++) {
    a += dp[i];
    a %= mod;
  }
  cout << a << "\n";
  return 0;
}
