lines = []
while line = gets
    lines << line.chomp.split(' ').map(&:to_i)
end

N = lines[0][0]

ans = 0
current = 0
for i in 1..N-1 do
  if lines[1][i-1] >= lines[1][i] then
    current += 1
  else
    current = 0
  end
  if ans < current then
    ans = current
  end
end
print ans