#include using namespace std; int main(){ int N; cin>>N; vector> temp(3,vector(4,0)); long long MOD=pow(10,9)+7; temp[0][3]=1; temp[0][2]=1; for(int i=0;i