#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdio> 
using namespace std;
const int N = 200000 + 10;
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;
}

