#include<bits/stdc++.h>
#define ll long long
using namespace std;
struct node{
	string a,b;
}a[200002];
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++){
		printf("0\n");
	}
	return 0;
} 
