n = int(eval(input()))

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



ans = 0

curr = 0

for i in range(1, n):

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

        curr += 1

    else:

        curr = 0

    ans = max(ans, curr)

print(ans)

n = int(eval(input()))

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



ans = 0

curr = 0

for i in range(1, n):

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

        curr += 1

    else:

        ans = max(ans, curr)

        curr = 0

ans = max(ans, curr)

print(ans)

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

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

+        ans = max(ans, curr) -    ans = max(ans, curr) +ans = max(ans, curr)