N=int(eval(input()))

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

ans=0

tmp=0

for i in range(N-1):

    if H[i]>=H[i+1]:

        tmp+=1

    else:

        tmp=0

    ans=max(ans,tmp)

print(ans)
n=int(eval(input()))

h=list(int(x) for x in input().split())



length=0

max_length=0



for i in range(n-1):

  if h[i]>=h[i+1]:

    length+=1

    if length>max_length:

      max_length=length

  else:

    length=0

print(max_length)
N = int(eval(input()))
H = list(map(int, input().split()))
ans = 0
tmp = 0
for i in range(N - 1):
    if H[i] >= H[i + 1]:
        tmp += 1
    else:
        tmp = 0
    ans = max(ans, tmp)
print(ans)

n = int(eval(input()))
h = list(int(x) for x in input().split())
length = 0
max_length = 0
for i in range(n - 1):
    if h[i] >= h[i + 1]:
        length += 1
        if length > max_length:
            max_length = length
    else:
        length = 0
print(max_length)

-N = int(eval(input())) -H = list(map(int, input().split())) -ans = 0 -tmp = 0 -for i in range(N - 1): -    if H[i] >= H[i + 1]: -        tmp += 1 +n = int(eval(input())) +h = list(int(x) for x in input().split()) +length = 0 +max_length = 0 +for i in range(n - 1): +    if h[i] >= h[i + 1]: +        length += 1 +        if length > max_length: +            max_length = length -        tmp = 0 -    ans = max(ans, tmp) -print(ans) +        length = 0 +print(max_length)