#include using namespace std; const int mod=1e9+7; int main(){ int n;cin >> n; int dp[n+1][3]; memset(dp,0,sizeof(dp)); dp[1][0]=1; dp[2][1]=1; dp[3][2]=1; for(int i=1;i