{-# LANGUAGE BangPatterns #-}
import Control.Arrow
import Control.Applicative
import Control.Monad.Fix
import Control.Monad.ST
import Data.Int
import Data.Foldable
import Data.List
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as VU
import qualified Data.ByteString.Char8 as B
import Debug.Trace

solve :: Int -> VU.Vector Int -> Bool
solve !n !an = VU.all even an

main = do
  let readInt :: Integral a => B.ByteString -> Maybe (a, B.ByteString)
      readInt = fmap (first fromIntegral . second B.tail) . B.readInt

  n  <- (\vec -> vec VU.! 0) . VU.unfoldrN 1 readInt <$> B.getLine
  an <-
    VU.replicateM n $ (\vec -> vec VU.! 0) . VU.unfoldrN 1 readInt <$> B.getLine
  putStrLn $ if solve n an then "second" else "first"
