program r20628a
 
implicit none
integer :: c(1:26)
integer, allocatable :: interval(:, :)
integer, allocatable :: s(:, :)
integer, allocatable :: t(:), v(:)
integer :: i, j, d, m, h
integer, allocatable :: smalld(:)
integer, allocatable :: q(:)


read *, d

allocate(s(1:26, 1:d))
allocate(interval(1:26, 0:d))
allocate(t(1:d))
allocate(v(0:d))

interval(:, :) = 0 !interval(i,d) = d - last(d,i)
v(0) = 0
m = 0

read *, c(1:26)

do i = 1, d
 read *, s(:, i)
  
  do j = 1, 26
  if (s(j, i) > m) then
  m = s(j, i)
  h = j
  end if
  end do
  
 print *, h
end do

end program r20628a