#include <bits/stdc++.h>
using namespace std;
#define ll long long

int T;

int main(){
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	srand(time(NULL));
	cin>>T;
	while(T--){
		cout<<(rand()*rand())%1000000007<<endl;
	}
}
