
import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  def next(): String = sc.next()
  def nextInt(): Int = next().toInt
  def nextLong(): Long = next().toLong

  def taskD(): Unit = {
    val n = nextInt()
    val as = Seq.fill(n)(nextInt())
    val firstWins = as.exists(_ % 2 == 1)
    println(if (firstWins) "first" else "second")
  }

  taskD()
}
