#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>

using namespace std;

typedef long long LL;
typedef pair<int,int> PII;

const int N = 10000;

int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	
	int n ,q;
	cin >> n >> q;
	for(int i = 1; i <= q; i ++){
		cout << 0 << endl;
	}
	return 0;
}
 
