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

cnt = 0
max = 0
(1..N-1).each do |i|
  if H[i] - H[i-1] <= 0
    cnt += 1
  else
    max = cnt if cnt > max
    cnt = 0
  end
end
max = cnt if cnt > max
puts max