local read = io.read

local D = read("*n")
local c = {}
local kind = 26
for i = 1, kind do
	c[i] = read("*n")
end
local s = {}
for i = 1, D do
	s[i] = {}
	for j = 1, kind do
		s[i][j] = read("*n")
	end
end

local bestContest, bestSum = -1, -1
for j = 1, kind do
	local sum = 0
	for i = 1, D do
		sum = sum + s[i][j]
	end
	if sum > bestSum then
		bestContest, bestSum = j, sum
	end
end

for i = 1, D do
	print(bestContest)
end
