import Control.Monad

main :: IO ()
main = putStrLn  =<< solve . map read . lines <$> getContents

solve :: [Integer] -> String
solve (_:xs) = if win then "first" else "second"
  where
    win = (length . filter odd $ xs) > (length.filter even $ xs)
