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

max = 0
count = 0
H.each_cons(2) do |arr|
  if arr[0] >= arr[1]
    count += 1
  else
    if count > max
      max = count
      count = 0
    end
  end
end

if count > max
  max = count
end

puts max
