#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
long long int n, sum1 = 0, sum2 = 0;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin.exceptions(ios::badbit | ios::failbit);
  cin >> n;
  for (long long int i = 1; i <= n; i++) {
    if (i % 2)
      sum2 = (sum1 + sum2 + 1) % mod;
    else
      sum1 = (sum1 + sum2 + 1) % mod;
  }
  cout << (sum1 + sum2) % mod << endl;
  return 0;
}
