#include<bits/stdc++.h>
#define for1(i, n) for(int i = 1; i <= (n);i++)
#define puts(x) cout << x << "\n"
constexpr int mod = 1000000007;
using namespace std;
signed main() {
	srand((unsigned)time(NULL));
	for1(i, 365)puts(rand() % 26 + 1);
	return 0;
}