n = gets.to_i
h = gets.split.map(&:to_i)
ans = 0
count =0

(0..n-2).each do |i|
  if h[i] >= h[i+1]
    count += 1
  else
    if ans < count 
      ans = count
    end
    count = 0
  end
end

puts [count,ans].max