#include<bits/stdc++.h>
#define LL long long
#define rep(i,a,b,g) for(LL i=a;i<=b;i+=g)
#define MOD 1000000007
using namespace std;
mt19937 myrand(time(0));
int main()
{
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	LL t;
	cin>>t;
	cin>>t;
	while(t--)
	{
		cout<<myrand()%MOD<<endl;
	}
	return 0;
}
/*
10:57 maybe 15 pts(but quite hard), see next timu first
12:11 don't know how to write, bailan
12:14 suijihua, qidong
12:16 find it can't AC any yangli XD
*/
/*
maybe 125~133 pts, at most 2=
if so i'm pleased, but i'm still too vegetable
rp++
rp++
rp++
rp++
rp++
rp++
rp++
rp++
rp++
rp++
rp++
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO
don't AFO

rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++rp++

suijihua don't fail me now

suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni
suijihua wo ai ni

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

follooooooooooow me!
me:dzd is love!
you:dzd is love!!
me:dzd is power!
you:dzd is power!!
*/
