#include<bits/stdc++.h>
#define M 10001
#define ll long long
using namespace std;
inline int read()
{
	int k=0,f=0;char c=getchar();
	for(;!isdigit(c);c=getchar()) f|=c=='-';
	for(;isdigit(c);c=getchar()) k=(k<<1)+(k<<3)+(c^48);
	return f?-k:k;
}
inline void write(int x)
{
	if(x<0) putchar('-'),x=-x;
	int stk[35],top=0;
	stk[top++]=x%10,x/=10;
	while(x) stk[top++]=x%10,x/=10;
	while(top) putchar(stk[--top]+48);
	puts("");
}
const ll mod=1e9+7;
int T;
int main()
{
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	srand((int)time(NULL));
	read(),T=read();
	while(T--)
	{
		ll a=rand()*rand()%mod*(rand()+rand())%mod;
		write(a);
	}
	return 0;
}

