#include <bits/stdc++.h>
using namespace std;
long long int a[1000005], b[1000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, i;
  cin >> n;
  a[1] = 1;
  b[1] = 0;
  for (i = 2; i <= n; i++) {
    if (i % 2 == 0) {
      a[i] = a[i - 1];
      b[i] = (b[i - 1] + (a[i] + 1));
      a[i] %= 1000000007;
      b[i] %= 1000000007;
    } else {
      b[i] = b[i - 1];
      a[i] = (a[i - 1] + (b[i] + 1));
      a[i] %= 1000000007;
      b[i] %= 1000000007;
    }
  }
  long long int ans = b[n] + a[n];
  ans %= 1000000007;
  cout << ans << "\n";
  return 0;
}
