#include<bits/stdc++.h>
#define pb emplace_back
using namespace std;

const int N = 1e5 + 7;
int i, j, k, n, m, c, T, u, v;
int a[N], b[N];
vector<int> d[N];

void sol() {
	puts("1");
	return;
	scanf("%d%d", &n, &k);
	for(i = 1; i < n; i++) {
		scanf("%d%d", &u, &v);
		d[u].pb(i), d[v].pb(i);
		a[i] = u, b[i] = v;
	}
	while(k--) {
		scanf("%d", &j);
	}
}

int main() {
	freopen("traverse.in", "r", stdin);
	freopen("traverse.out", "w", stdout);
	scanf("%d%d", &c, &T);
	while(T--) sol();
	return 0;
}
