n=int(eval(input()))

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

cnt=0

ans=0



for i in range(1,n):

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

        cnt+=1

        ans=max(ans,cnt)

    else:

        cnt=0



print(ans)
n=int(eval(input()))

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

dp=[0]*n

cnt=0

for i in range(1,n):

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

        cnt+=1

    else:

        cnt=0

    dp[i]=cnt

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

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

+dp = [0] * n -ans = 0 -        ans = max(ans, cnt) -print(ans) +    dp[i] = cnt +print((max(dp)))