#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #define rep(i,n) for(int i = 0;i < n;i++) #define REP(i,n,k) for(int i = n;i < k;i++) #define P(p) cout<<(p)<> ret; return ret; } string s; ll k1[1000001], k2[1000001], p[1000001]; void solve() { k1[1] = 1; k2[1] = 0; p[1] = 0; ll n; cin >> n; for (int i = 2; i <= n; i++){ k1[i] = p[i-1]; k2[i] = k1[i-1]; p[i] = k1[i-1] + k2[i-1]; } P((k1[n] + k2[n] + p[n]) % 1000000007); } int main() { solve(); return 0; }