fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  val xs = IntArray(n, { readLine()!!.toInt() })
  if (xs.all { it % 2 == 0 }) {
    println("second")
  } else {
    println("first")
  }
}