N = gets.chomp.to_i
arr = readlines.map{|n| n.chomp.to_i}

c_i = 1
lis = 1
prev = nil
arr.each do |n|
    if prev.nil?
        prev = n
        next
    end
    if n <= prev
        c_i+=1
    else
        lis = [c_i,lis].max
        c_i = 0
    end
end
lis = [c_i,lis].max
puts lis