#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector")
#pragma GCC target("sse,sse2,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int MOD = 1e9 + 7;
const int INF32 = 1 << 30;
const long long INF64 = 1LL << 60;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, sumodd = 0, sumeven = 1;
  cin >> n;
  vector<long long> dp(n, 1);
  for (long long i = 1; i < n; i++) {
    dp[i] = (dp[i] + (i & 1 ? sumeven : sumodd)) % MOD;
    if (i & 1)
      sumodd = (sumodd + dp[i]) % MOD;
    else
      sumeven = (sumeven + dp[i]) % MOD;
  }
  cout << (sumodd + sumeven) % MOD;
  return 0;
}
