import scala.io.StdIn

object Main {

  def main(args: Array[String]): Unit = {

    val n = StdIn.readLine().toInt
    val ans = (1 to n).foldLeft(false)((acc, _) => {
      val a = StdIn.readLine().toInt
      acc || (a % 2 == 1)
    })
    println(if(ans) "first" else "second")

  }

}
