#include<bits/stdc++.h>
#define int long long
#define gcd __gcd

using namespace std;
const int N=1e5+5;
signed main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);
	int n,Q;
	cin>>n>>Q;
	while(Q--){
		cout<<0<<'\n';
	}
	return 0;
}
