#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	long long n,q;
	scanf("%lld%lld",&n,&q);
	while(q--)cout<<0<<endl;
	return 0;
} 
