#include<bits/stdc++.h>
using namespace std;
void file(){
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
}
int re(){
	int x=0,f=1;char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
	while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
	return x*f;
}
const int N = 1e5+10;
int main(){
	file();
	int QWQ=re(),T=re();
	while(T--){
		puts("2");
	}
}
