_n = gets.to_i
as = gets.strip.split.map(&:to_i)
answer = 0
cnt =0
buf = as[0]
for num in 1.._n-1 do
    if buf>=as[num]
      cnt+=1;
    else
      if cnt>answer
        answer=cnt
      end
      cnt=0
    end
    buf = as[num]
end
if cnt>answer
   answer=cnt
end

puts answer