n = gets.to_i
array = []
for i in (0..n-1)
  array[i]=gets.to_i
end
m=0
array.each do |a|
  if a%2 ==0 then
    m +=1
end
end

if m == array.size then
  answer = "second"
else
  answer = "first"
end

puts answer
