local n = io.read("*n")
local h = {}
for i = 1, n do
  h[i] = io.read("*n")
end
local curlen = 0
local maxlen = 0
for i = 2, n do
  if h[i - 1] >= h[i] then
    curlen = curlen + 1
  else
    maxlen = math.max(maxlen, curlen)
    curlen = 0
  end
end
maxlen = math.max(maxlen, curlen)
print(maxlen)
