import Control.Monad

solver::[Int]->Bool
solver ls = []/=(filter (\i->mod i 2==1) ls)

main::IO()
main=do
  d<-getLine
  let n = read d
  c<-forM [1..n] (\_-> getLine)
  let dat  = map read c
  putStr (if solver dat then "first\n" else "second\n")
