n = gets.chomp.to_i
boxes = gets.chomp.split(' ').map(&:to_i)
answer = Array.new(boxes.length)
answer[0] = 0
boxes.each_cons(2).with_index do |con, i|
  answer[i+1] = con[0] < con[1] ? 0 : answer[i]+1
end
print answer.max