n=gets.to_i
s=gets.split.map &:to_i
max=0
wa=0
for i in 0..n-2
  ans=0
  wa=s[i]
  for j in i+1..n-1
    if wa>=s[j]
      ans+=1
      max=[max,ans].max
    else
      ans=0
    end
    wa=s[j]
  end
end
puts max
