N = gets.chomp.to_i
h = Array.new(N)
str = gets.split
for i in 0...N do
    h[i] = str[i].to_i
end

a = 0
max = 0

for i in 0...N-1 do
    if h[i] >= h[i+1]
        a += 1
    else
        if max < a
            max = a
        end
        a = 0
    end
end

if max < a
    max = a
end

puts max