#include <bits/stdc++.h>
#pragma GCC optimize "O3"
using namespace std;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
const int N = 1e6 + 6;
const int mod = 1e9 + 7;
int fib[N] = {0, 1};
void solve() {
  for (int i = 2; i <= N - 2; i++) fib[i] = (fib[i - 1] + fib[i - 2]) % mod;
  int n;
  cin >> n;
  cout << ((fib[n + 1] + fib[n + 2] - 2) % mod + mod) % mod << '\n';
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
