#include #include #include #include #include #include #include #include #include #include #include #include #define LL long long using namespace std; const int M = 1e6 + 5, MOD = 1e9 + 7; int A[M],B[M];; int fast(int x,int y){ int t=x,res=1; while(y){ if(y&1) res=1LL*res*t%MOD; t=1LL*t*t%MOD; y>>=1; } return res; } int main() { int T; scanf("%d", &T); B[0]=B[1]=1; for(int j=2;j