program harlequin
  implicit none
  integer :: n, a, i
  read(*,*) n
  do i = 1, n
    read(*,*) a
    if (mod(a,2).eq.1) then
      write(*,'(a)') "first"
      stop
    end if
  end do
  write(*,'(a)') "second"
  stop
end program harlequin