N=int(eval(input()))

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

ans=0

cur=0

for i,h in enumerate(H):

    if i>=1 and h<=H[i-1]:

        cur=cur+1

        ans=max(ans,cur)

    else:

        cur=0

print(ans)

N=int(eval(input()))

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

cur=[0]*N

for i in range(1,N):

    if H[i]<=H[i-1]:

        cur[i]=cur[i-1]+1

print((max(cur)))

N = int(eval(input()))
H = [int(x) for x in input().split()]
ans = 0
cur = 0
for i, h in enumerate(H):
    if i >= 1 and h <= H[i - 1]:
        cur = cur + 1
        ans = max(ans, cur)
    else:
        cur = 0
print(ans)

N = int(eval(input()))
H = [int(x) for x in input().split()]
cur = [0] * N
for i in range(1, N):
    if H[i] <= H[i - 1]:
        cur[i] = cur[i - 1] + 1
print((max(cur)))

-ans = 0 -cur = 0 -for i, h in enumerate(H): -    if i >= 1 and h <= H[i - 1]: -        cur = cur + 1 -        ans = max(ans, cur) -    else: -        cur = 0 -print(ans) +cur = [0] * N +for i in range(1, N): +    if H[i] <= H[i - 1]: +        cur[i] = cur[i - 1] + 1 +print((max(cur)))