def ascan; gets.split.map(&:to_i); end

@memo = {}

def guchoku(arr)
    arr = arr.select{|e| e > 0}.sort
    if arr.empty?
        return false # second
    end
    
    return @memo[arr] if @memo[arr]
    
    [0,1].repeated_permutation(arr.size) do |pm|
        next unless pm.include?(1)
        new_arr = arr.zip(pm).map{|a,b| a-b}
        return @memo[arr] = true if guchoku(new_arr) == false
    end
    return @memo[arr] = false
end


rng = gets.to_i.times.map{gets.to_i}.sort

#puts guchoku(rng) ? "first" : "second"


no = rng.select{|r|r.odd?}.size
ne = rng.select{|r|r.even?}.size

if no >= 1
    puts "first"
else
    puts "second"
end
