#include using namespace std; int main(){ long long int n; cin >> n; long long int mod = 1000000007; vector a(n); a[0] = 1; a[1] = 2; a[2] = 2; for(long long int i = 3; i < n; i++){ a[i] = (a[i-2] + a[i-3]) % mod; } cout << a[n-1] % mod << endl; // for(auto x:a) cout << x % mod << endl; return 0; }