n = int(eval(input()))

l = list(map(int, input().split()))



cnt = 0

ans = 0



for i in range(n-1):

  if l[i] < l[i+1]:

    cnt = 0

  else:

    cnt += 1

    ans = max(ans, cnt)



print(ans)
eval(input())

a=c=t=0

for i in map(int,input().split()):

  if i>t: c=0

  else: c+=1; a=max(a,c)

  t=i

print(a)
n = int(eval(input()))
l = list(map(int, input().split()))
cnt = 0
ans = 0
for i in range(n - 1):
    if l[i] < l[i + 1]:
        cnt = 0
    else:
        cnt += 1
        ans = max(ans, cnt)
print(ans)

eval(input())
a = c = t = 0
for i in map(int, input().split()):
    if i > t:
        c = 0
    else:
        c += 1
        a = max(a, c)
    t = i
print(a)

-n = int(eval(input())) -l = list(map(int, input().split())) -cnt = 0 -ans = 0 -for i in range(n - 1): -    if l[i] < l[i + 1]: -        cnt = 0 +eval(input()) +a = c = t = 0 +for i in map(int, input().split()): +    if i > t: +        c = 0 -        cnt += 1 -        ans = max(ans, cnt) -print(ans) +        c += 1 +        a = max(a, c) +    t = i +print(a)