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

cnt = -1
tar = h[0] 
max = 0
for i in 1..h.size do
    if h[i-1] <= tar
        cnt += 1
    else
        if max < cnt 
            max = cnt
        end
        cnt = 0
    end
    tar = h[i-1]
end

if max < cnt 
    max = cnt
end
p max