import scala.annotation.tailrec
object Main extends App {

  import scala.io.StdIn._
  import scala.math._

  val n = readLine.trim.toInt
  val apples = Array.tabulate(n){_ ⇒ readLine.trim.toLong}
  println(
    if (apples.count(l ⇒ l % 2 == 1) > 0) "first" else "second"
  )
  implicit class Extension[T](val value :T){
    def also(func: T ⇒ Unit): T = {
      func(value)
      value
    }
    def let[R](func: T ⇒ R): R = func(value)
  }
}