local rand = math.random
local read = io.read

math.randomseed(os.time())

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

--[[
local function randNoDuplication(list)
	local num = rand(1, #list)
	for i = 1, #list do
		if list[i] == num then
			return randNoDuplication(list)
		end
	end
	return num
end
]]

for i = 1, D do
	print(rand(1, 26))
end
