#include <iostream>
#include <string>
#include <vector>
#define isdigit(ch) ('0'<=(ch)&&(ch)<='9')
using  namespace std;
int n,k;
int c,t;
unsigned long long rp;
void solve(){
	cin>>n>>k;
	cout<<2<<'\n';
	++rp;
}
int main(){
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	cin>>c>>t;
	while(t--){
		solve();
	}
	return 0;
}
