n = gets.to_i
h = gets.chomp.split.map(&:to_i)
count = 0
max = 0
1.upto(n-1) do |i|
  if h[i] <= h[i-1] then
    count += 1
  else
    max = count if max < count
    count = 0 if count != 0
  end
end
max = count if max < count
puts max