n = gets.chomp.to_i
h_arr = gets.chomp.split(" ").map(&:to_i)

count = -1
tmp = 0
max = 0
h_arr.each do |h|
  if count == -1 then
    tmp = h
    count = 0
  elsif tmp >= h then
    tmp = h
    count += 1
  else
    max = count if count > max
    tmp = h
    count = 0
  end
end

max = count if count > max

puts max


