n = gets.chomp.to_i
hs = gets.chomp.split(" ").map(&:to_i);

hs.reverse!
result = Array.new(n, 0)

hs.each_with_index do |h, i|
  next if i == 0 
  result [i] = result[i-1] + 1 if hs[i] >= hs[i-1]
end

puts result.max