a = gets.chomp.to_i
b = []
a.times do
 b.push(gets.chomp.to_i)
end
b.sort!
(a-1).times do
b = b.map{|aa|aa-b[0]}
b.delete_at(0)
if b.size == 1 || b.size == 0
  break
end
end
if b[0] % 2 == 0
  puts "second"
else
   puts "first"
end
