n=gets.to_i
hS = gets.split.map(&:to_i)
nowCount=0
maxCount=0
(0...(n-1)).each do |index|
  if hS[index] >= hS[index+1]
    nowCount+=1
  else
    nowCount = 0
  end
  maxCount = nowCount if nowCount > maxCount
end
puts maxCount