#include<iostream>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include<cmath>
#include<map>
#include<deque>
#include<string>
#include<cstring>
#include<algorithm> 
using namespace std;
int main()
{
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	int n,q;
	cin>>n>>q;
	for(int i=1;i<=q;i++)
	{
		cout<<0<<endl;
	}
	return 0;
	//�~&�{ 
	fclose(stdin);
	fclose(stdout);
}
