local l = io.read("*l")
local beforeNum = nil
local count,result = 0,0
for _ in io.read("*l"):gmatch("%d+") do
  if beforeNum == nil then
    beforeNum = tonumber(_)
  elseif beforeNum >= tonumber(_) then
    count = count + 1
  elseif count > result then
    result = count
    count = 0
  else
    count = 0
  end
  beforeNum = tonumber(_)
end
if count > result then
  result = count
end
print(result)