n=io.read("*n")
h={}
for i=1, n do
  table.insert(h, io.read("*n"))
end

ans=0
s=0
for i=1, n-1 do
  if h[i] < h[i+1] then
    s=0
  else
    s=s+1
  end

  if ans < s then
    ans=s
  end
end

print(ans)