#include"bits/stdc++.h"

#define rep(i, N) for(int i = 0;i < N;i++)

typedef long long ll;

const int mod = 1e9 + 7;

using namespace std;



int main(void) {
	int D; cin >> D;
	vector<int> c(26, 0);
	rep(i, 26)cin >> c[i];
	vector<vector<int>> s(D, vector<int>(26, 0));
	rep(i, D)rep(j, 26)cin >> s[i][j];
	
	rep(i, D) {
		int t = 0;
		rep(j, 26) {
			if (s[i][t] <= s[i][j])t = j;
		}
		cout << t+1 << endl;
	}

	return 0;
}