import Control.Applicative
import Control.Monad

main=do
    n<-readLn :: IO Int
    xs<-replicateM n readLn :: IO [Int]
    let a=sum xs `div` 2
    putStrLn $ 
      if odd a
          then "first"
          else "second"