full_num = int(eval(input()))     

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

move = 0

A_result = ""

for i in range(full_num-1):

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

       A_result =A_result+"1"

   else:

       A_result =A_result+"0"

B = list(A_result.split("0"))

C = []

for i in B:

    C.append(len(i))

print((max(C)))
n = int(eval(input()))

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



cnt =0

m =[]

if n !=1:

    for i in range(n - 1):

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

		    cnt += 1

		    if i == n - 2:

			    m.append(cnt)

	    else:

		    m.append(cnt)

		    cnt = 0

else:

	m.append(0)

print((max(m)))
full_num = int(eval(input()))
A = list(map(int, input().split()))
move = 0
A_result = ""
for i in range(full_num - 1):
    if A[i] >= A[i + 1]:
        A_result = A_result + "1"
    else:
        A_result = A_result + "0"
B = list(A_result.split("0"))
C = []
for i in B:
    C.append(len(i))
print((max(C)))

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

-full_num = int(eval(input())) -A = list(map(int, input().split())) -move = 0 -A_result = "" -for i in range(full_num - 1): -    if A[i] >= A[i + 1]: -        A_result = A_result + "1" -    else: -        A_result = A_result + "0" -B = list(A_result.split("0")) -C = [] -for i in B: -    C.append(len(i)) -print((max(C))) +n = int(eval(input())) +h = list(map(int, input().split())) +cnt = 0 +m = [] +if n != 1: +    for i in range(n - 1): +        if h[i] >= h[i + 1]: +            cnt += 1 +            if i == n - 2: +                m.append(cnt) +        else: +            m.append(cnt) +            cnt = 0 +else: +    m.append(0) +print((max(m)))