//T3
#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
#define endl '\n'

const ll INF=0x3f3f3f3f;
const ll mod=998244353;
//const ll N=1e5+10;

void Solve(void) {
	int n,m; cin>>n>>m;
	for(int i=1;i<=n;i++) cout<<"0\n";
}

int main() {
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(nullptr); cout.tie(nullptr);
	
	//ll T; cin>>T; for(;T--;)
	Solve();
	return 0;
}
