n = gets.chomp.to_i
ary = []
n.times do |i|
  ary << gets.chomp.to_i
end

flag = true
# すべて偶数なら先手のmake
ary.each do |item|
  if item%2 != 0
    flag = false
    break
  end
end

if flag
  puts "second"
else
  puts "first"
end
