fun main() {
    val n = readLine()?.toInt() ?: return
    repeat(n) {
        val a = readLine()?.toLong() ?: return
        if(a % 2 == 1L){
            println("first")
            return
        }
    }
    println("second")
}
