n = gets.to_i
h = gets.split.map(&:to_i)
i = 0; count = 0; tmp = 0; ans = 0;
loop do
  if tmp >= h[i]
    count += 1
  else
    ans = count if count > ans
    count = 0
  end
  tmp = h[i];
  if i == n-1
    ans = count if count > ans
    break
  end
  i += 1
end
puts ans