#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	int n,p;
	string a,b,c,d;
	cin>>n>>p>>a>>b>>c>>d;
	while(p--) cout<<0<<'\n';
	fclose(stdin);
	fclose(stdout);
} 
