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