n=int(eval(input()))

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



i=1

cnt=0

cnt_max=0

while i<n:

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

    cnt+=1

  else:

    cnt=0

  cnt_max=max(cnt,cnt_max)

  

  i+=1

print(cnt_max)

  

  
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





print((max(ans,cnt)))



n = int(eval(input()))
s = list(map(int, input().split()))
i = 1
cnt = 0
cnt_max = 0
while i < n:
    if s[i] <= s[i - 1]:
        cnt += 1
    else:
        cnt = 0
    cnt_max = max(cnt, cnt_max)
    i += 1
print(cnt_max)

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
print((max(ans, cnt)))

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