n = gets.to_i
a = gets.split.map(&:to_i)

b = []
(n-1).times do |i|
  b << a[i] - a[i+1]
end

ans = 0
tmp = 0
(n-1).times do |i|
  if b[i] >= 0
    tmp += 1
  else
    ans = tmp if ans < tmp
    tmp = 0
  end
end
ans = tmp if ans < tmp
puts ans.to_s
