n = gets.chomp.to_i
apple_ary = Array.new(n)
first_win = false
n.times do |i|
    apple_ary[i] = gets.chomp.to_i
    first_win = true if apple_ary[i] % 2 == 1
end

puts first_win ? 'first' : 'second'
