# frozen_string_literal: true

n = gets.to_i
a = n.times.map { gets.to_i }
count = 1
max = 0
1.upto(n - 1) do |i|
  if a[i] <= a[i - 1]
    count += 1
    max = count if max < count
  else
    count = 1
  end
end
puts max
