n = int(eval(input()))

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

ans = 0

maxi = 0

for i in range(n-1):

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

        ans += 1

    else:

        maxi = max(ans,maxi)

        ans = 0

print((max(maxi,ans)))
n = int(eval(input()))

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

ans = 0

maxi = 0

for i in range(1,n):

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

        ans += 1

    else:

        maxi = max(ans,maxi)

        ans = 0

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

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

-for i in range(n - 1): -    if h[i] >= h[i + 1]: +for i in range(1, n): +    if h[i - 1] >= h[i]: