#include <bits/stdc++.h>
using namespace std;
const long long logN = 20;
const long long M = 1000000007;
const long long MM = 998244353;
const long long INF = 1e12;
const long long N = 100005;
bool sortb(pair<long long, long long> const &a,
           pair<long long, long long> const &b) {
  return a.second < b.second;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, e = 0, o = 0, i;
  cin >> n;
  e = 1;
  for (i = 1; i < n; i++) {
    if (i % 2 == 0) {
      e = (e + o + 1) % M;
    } else {
      o = (o + e + 1) % M;
    }
  }
  cout << (e + o) % M << endl;
  return 0;
}
