n = gets.to_i
h = gets.chomp.split(' ').map(&:to_i)
ans = 0
temp = 0
(n-1).times do |i|
  if (h[i+1]<=h[i])
    temp += 1
  else
    if ans < temp
      ans = temp
    end
    temp = 0
  end
end

if (ans<temp)
    ans = temp
end
puts ans