#Lower

N = int(eval(input()))

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

max = 0

n=0



for i in range(N-1):

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

        n = n+1

    else :

        n = 0

    if n > max:

        max = n



print(max)

N = int(eval(input()))

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



ans = 0

ctr = 0



for i in range(N-1):

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

        ctr += 1

    else:

        ctr = 0



    ans = max(ans, ctr)



print(ans)

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

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

-# Lower -max = 0 -n = 0 +ans = 0 +ctr = 0 -        n = n + 1 +        ctr += 1 -        n = 0 -    if n > max: -        max = n -print(max) +        ctr = 0 +    ans = max(ans, ctr) +print(ans)