import Control.Monad

main = do
  length <- readLn :: IO Int
  fruits <- replicateM length readLn :: IO [Int]
  case even $ sum fruits of 
    True -> putStrLn "second"
    False -> putStrLn "first"

