#include "bits/stdc++.h" using namespace std; typedef long long ll; ll pr = (ll)1e9+7; int main() { int N; cin >> N; vector dp(N+1), k(N+1), p(N+1); dp[1]=1, k[1]=1, p[1]=0; for (int i = 1; i < N; i++) { dp[i+1] = dp[i] + k[i]; dp[i+1] %= pr; k[i+1] = p[i]; k[i+1] %= pr; p[i + 1] = dp[i] - p[i]; p[i+1] %= pr; } cout << dp[N] << endl; }