n = gets.to_i

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

def sum(as)
  as.reduce(0){|a,e|a+=e}
end

if as.size == 1
  if as[0].odd?
    ans = "first"
  else
    ans = "second"
  end
elsif as.size.odd?
  if sum(as).odd?
    ans = "first"
  else
    ans = "second"
  end
else
  if sum(as).odd?
    ans = "first"
  else
    ans = "second"
  end
end

puts ans