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

as = Array.new
maxcount= 0

for i in 0..n-2 do
  count = 0
  while i <= n-2
    #print("hs[i]=#{hs[i]}, hs[i+1]=#{hs[i+1]}\n")
    if hs[i] >= hs[i+1]
      count += 1
    else
      break
    end
    i+=1
  end
  #p count
  if count > maxcount
  maxcount = count
end
end
p maxcount