require 'pp'

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

max = 0
now = h_n[0]

now_max = 1
1.upto(n-1) do |i|
    if now >= h_n[i]
        now_max += 1
    else
        now_max = 0
    end
    
    now = h_n[i]

    if max < now_max
        max = now_max
    end
end

puts max
