# N
# H1 H2 ... Hn

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

a = Array.new(n, 0)
c = 0

(0...n).reverse_each do |i|
  a[i] = c

  next if i == 0

  if hs[i - 1] >= hs[i]
    c += 1
  else
    c = 0
  end
end

puts a.max
