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

result = 0
count = 0

(1...H.size).each do |n|
  if H[n-1] >= H[n]
    count += 1
  else
    result = count if count > result
    count = 0
  end
end

result = count if count > result

puts result