#include #include using namespace std; using lint=int64_t; const int mod=1e9+7; int main() { int N; cin >> N; int dp[1000010][3]={}; dp[0][0]=1; for(int i=0;i