N = int(eval(input()))

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

ans = 0

cnt = 0

for i in range(1, N):

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

        cnt += 1

    else:

        ans = max(ans, cnt)

        cnt = 0

ans = max(ans, cnt)



print(ans)

n = int(eval(input()))

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

ans = 0

cnt = 0

for i in range(1, n):

    if height[i] > height[i - 1]:

        cnt = 0

    else:

        cnt += 1

    ans = max(ans, cnt)



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

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

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