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

count = 0
counts = []
(n-1).times do |i|
  if nums[i] >= nums[i+1]
    count += 1
  else
    counts << count
    count = 0
  end
end

counts << count

puts counts.max
