n = gets.to_i
h = gets.split(" ").map(&:to_i)

list = []
n.times do |i|
  next list.push(0) if i == 0
  if h[n - i - 1] >= h[n - i]
    list.push(list.last + 1)
  else
    list.push(0)
  end
end
puts list.max