N = gets.chomp.to_i
H = gets.chomp.split.map(&:to_i)
# T = gets.chomp

i = 0
max_r = 0

while i < (H.size - 1)
  r = 0
  while (i < (H.size - 1)) && (H[i] >= H[i+1])
    i += 1
    r += 1
  end
  # For Debug
  # p "r: #{r}"
  max_r = [max_r, r].max
  i += 1
end

p max_r
