#include<bits/stdc++.h>
using namespace std ;
const int MX = 1e5 ;
int main()
{
	freopen("replace.in","r",stdin) ;
	freopen("replace.out","w",stdout) ;
	ios::sync_with_stdio(0);
	cin.tie(0) ;
	int n,q,i ;
	cin >> n >> q ;
	for (i = 1 ; i <= q ; i++)
	{
		cout << 0 << '\n' ;
	}
	return 0 ;
}

