eval(input())

x = [int(i) for i in input().split(" ")]

steps = []

res, c = 0, 0

for i in range(len(x)-1):

  steps.append(x[i] - x[i+1])

for i in steps:

  if i >= 0:

    c += 1

  else:

    c = 0

  if c > res:

    res = c

print(res)

  
eval(input())

x = [int(i) for i in input().split(" ")]

steps = []

res, c = 0, 0

for i in range(len(x)-1):

  if x[i] - x[i+1] >= 0:

    c += 1

  else:

    c = 0

  if c > res:

    res = c

print(res)
eval(input())
x = [int(i) for i in input().split(" ")]
steps = []
res, c = 0, 0
for i in range(len(x) - 1):
    steps.append(x[i] - x[i + 1])
for i in steps:
    if i >= 0:
        c += 1
    else:
        c = 0
    if c > res:
        res = c
print(res)

eval(input())
x = [int(i) for i in input().split(" ")]
steps = []
res, c = 0, 0
for i in range(len(x) - 1):
    if x[i] - x[i + 1] >= 0:
        c += 1
    else:
        c = 0
    if c > res:
        res = c
print(res)

-    steps.append(x[i] - x[i + 1]) -for i in steps: -    if i >= 0: +    if x[i] - x[i + 1] >= 0: