#include<bits/stdc++.h>
using namespace std;
int n,q;
char ch;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	scanf("%d%d",&n,&q);
	while(ch!=EOF)ch=getchar();
	while(q--)puts("0");
	return 0;
}
