object Main extends App {
  val in = scala.io.Source.stdin.getLines().toIndexedSeq
  .tail.map(_.toLong)
  val s:Long = in.sum
  
  if(in.count(_ != 1L) == 0)
  println("first")
  else if(in.count(_ != 1L) == 1 && in.count(_ % 2L == 0) == 1)
  println("first")
  else if(s % 2L != 0L)
  println("first")
  else
  println("second")	
}
