n = gets.to_i
ap = Array.new(n,0)
for i in 0..n - 1
  ap[i] = gets.to_i
end
ap = ap.sort
if ap.length == 1
  if ap[0] % 2 == 0
    puts "second"
  else
    puts "first"
  end
  exit
end
if ap[0] % 2 == 0 && ap[1] % 2 == 0
  puts "second"
else
  puts "first"
end
