#include<bits/stdc++.h>
#define LL long long
using namespace std;
const int N=1e5+9;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	LL n,q;
	scanf("%lld%lld",&n,&q);
	for(int i=1;i<=q;i++){
		printf("0\n");
	}
	fclose(stdin);
	fclose(stdout);
	return 0;
} 
