N = gets.chomp.to_i
last = -1
ans = 1
current = 1
N.times do |i|
    if (a = gets.chomp.to_i) <= last
        current += 1
        if ans < current
            ans = current
        end
    else
        current = 1
    end
    last = a
end
puts ans