n = gets.chomp.to_i
array = gets.split(" ").map(&:to_i)
count = 0
move = 0
i = 0

while i + 1 < array.size do
    if array[i] >= array[i+1]
        count += 1
    else
        count = 0
    end

    if move <= count
        move = count
    end
    i += 1
end

puts move
