# frozen_string_literal: true
n = gets.to_i
h = gets.split.map(&:to_i)
sum = 0
temp = 0
(n - 1).times do |i|
  if h[i + 1] <= h[i]
    temp += 1
  else
    sum = temp if sum <= temp
    temp = 0
  end
end
sum = temp if sum <= temp
puts sum