N = gets.to_i
a = gets.split.map(&:to_i)

count = Array.new(N)

for i in 0..(N-1) do
  count[i] = 0
  for j in i..(N-2) do
    if a[j].to_i >= a[j+1].to_i then
      count[i] = count[i] + 1
    else
      break
    end
  end
end
puts count.max
