N = gets.to_i
H = gets.split.map(&:to_i)

max_index = nil
max = 0
count = 0
H.each_with_index do |n, i|
  if H[i+1].nil?
    puts max
  elsif H[i+1] <= n
     count += 1
    if max < count
      max = count
    end
  else
    count = 0
  end
end