n = gets # ignores
h = gets.chomp.split.map(&:to_i)

answer = 0
current = 0
h.each_cons(2) do |a, b|
  if a >= b
    current += 1
  else
    answer = [answer, current].max
    current = 0
  end
end
puts [answer, current].max
