local N = io.read("n")
local p = io.read("n")
local c = 0
local a = 0
for i=2,N do
  local h = io.read("n")
  if h <= p then
    c = c + 1
    a = math.max(a, c)
  else
    c = 0
  end
  p = h
end
print(a)