program caddi2018d
  implicit none
  integer n
  integer, dimension(:), allocatable :: a

  read *, n
  allocate(a(n))
  read *, a
  if (minval(trailz(a)).eq.0) then
     print '(a)', 'first'
  else
     print '(a)', 'second'
  end if
end program caddi2018d
