local read = io.read

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

local function MaxIndexAndVar(list)
	local maxIndex, maxVar = -1, -1
	for i = 1, #list do
		if list[i] > maxVar then
			maxIndex, maxVar = i, list[i]
		end
	end
	return maxIndex, maxVar
end

for i = 1, D do
	local t = MaxIndexAndVar(s[i])
	print(t)
end
