import sys



n = int(eval(input()))

a = []

b = input().split(" ")

for i in range(n):

	a.append(int(b[i]))



if n == 1:

	print((0))

	sys.exit()



mx = 0

cnt = 0

for i in range(n-2, -1, -1):

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

		cnt += 1

		mx = max(mx, cnt)

	else:

		cnt = 0



print(mx)

n=int(eval(input()))

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



 

count=0

count_list=[0]



 

for i in range(n-1):

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

        count+=1

        count_list.append(count)

    else :

        count=0



print((max(count_list)))
import sys

n = int(eval(input()))
a = []
b = input().split(" ")
for i in range(n):
    a.append(int(b[i]))
if n == 1:
    print((0))
    sys.exit()
mx = 0
cnt = 0
for i in range(n - 2, -1, -1):
    if a[i] >= a[i + 1]:
        cnt += 1
        mx = max(mx, cnt)
    else:
        cnt = 0
print(mx)

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

-import sys - -a = [] -b = input().split(" ") -for i in range(n): -    a.append(int(b[i])) -if n == 1: -    print((0)) -    sys.exit() -mx = 0 -cnt = 0 -for i in range(n - 2, -1, -1): -    if a[i] >= a[i + 1]: -        cnt += 1 -        mx = max(mx, cnt) +h = list(map(int, input().split())) +count = 0 +count_list = [0] +for i in range(n - 1): +    if h[i] >= h[i + 1]: +        count += 1 +        count_list.append(count) -        cnt = 0 -print(mx) +        count = 0 +print((max(count_list)))