#include<bits/stdc++.h>
using namespace std;
const int N=2e5+5;
int n,q;

int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	scanf("%d%d",&n,&q);
	while(q--){
		puts("0");
	}
	return 0;
} 
