import scala.io.StdIn

object Main extends App {
  val n = StdIn.readInt
  val a = Iterator.continually(StdIn.readInt).take(n).toArray
  val odd = a.exists(i => (i & 1)==1)
  val ans = if(odd) "first" else "second"
  println(ans)
}