N = gets.chomp.to_i

apples = []

N.times do
  apples << gets.chomp.to_i
end

add_count = apples.count(1) >= 1 ? 1 : 0
odd_count = apples.reject{ |apple| apple == 1 }.count { |apple| apple.odd? } + add_count
puts odd_count.odd? ? "first" : "second" 
