
import Control.Monad

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

