#include <bits/stdc++.h>
using namespace std;
long long readInt() {
  long long x;
  cin >> x;
  return x;
}
const long long mod = 1e9 + 7;
void test_case() {
  long long n = readInt();
  long long red = 1;
  long long blue = 0;
  for (long long i = 2; i <= n; i++) {
    if (i % 2 == 0) {
      long long n_red = red;
      long long n_blue = 1 + red + blue;
      red = n_red % mod;
      blue = n_blue % mod;
    } else {
      long long n_red = 1 + red + blue;
      long long n_blue = blue;
      red = n_red % mod;
      blue = n_blue % mod;
    }
  }
  long long ans = (red + blue) % mod;
  cout << ans << "\n";
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  long long t = 1;
  while (t--) {
    test_case();
  }
}
