#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define pii pair<int, int>
#define fi first
#define se second
#define ls (root << 1)
#define rs (root << 1 | 1)
#define fastio ios :: sync_with_stdio(false);\
			   cin.tie(nullptr);\
			   cout.tie(nullptr);
			   
using namespace std;


int n, q;

int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	fastio
	cin >> n >> q;
	while(q--){
		cout << 0 << endl;
	}
	return 0;
}

