n = gets.to_i
a = []
n.times do |i|
  a[i] = gets.to_i
end
max = 0

n.times do
  current = a.shift
  count = a.count{|item| item >= current}
  if(count > max)
    max = count
  end
  if(max + 1 >= a.length)
    break
  end
end

p max + 1
