l = gets.chomp.to_i
nums = gets.split(' ').map(&:to_i)

score = 0
c_score = 0
current = nil

nums.each do |i|
  if current.nil?
    current = i
    next
  end

  if current >= i
    c_score += 1
  else
    c_score = 0
  end
  score = c_score if c_score > score
  current = i
end

p score