#include<bits/stdc++.h>
using namespace std;
#define ll long long
int _,n;
const int N=3e5+7;
void solve() {
	cout<<0<<'\n';
}
int main() {
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	cin>>n>>_;
	for(int i=1; i<=_; i++) {
//		printf("---test---%d---\n",i);
		solve();
	}
	return 0;
}

