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

max = 0
cur = 0

n.times do |i|
  right = i == n - 1 ? 10000000000 : hs[i+1]

  if hs[i] >= right
    cur += 1
  else
    cur = 0
  end

  max = [max, cur].max
end

p max
