import copy

n = int(eval(input()))

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

l_L = copy.deepcopy(r_L)

l_L.reverse()





r_ans,l_ans = 0,0

r_ans_L,l_ans_L = [],[]



for val in range(n-1):

    if r_L[val] >= r_L[val+1]:

        r_ans += 1

    else:

        r_ans_L.append(r_ans)

        r_ans = 0

    







l_ans_L.append(l_ans)

r_ans_L.append(r_ans)



print((max(max(l_ans_L),max(r_ans_L))))

n = int(eval(input()))

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





s = h_L[0]

tmp = 0

result_L = []

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



    if s >= h_L[i+1]:

        tmp += 1

    else:

        result_L.append(tmp)

        tmp = 0



    s = h_L[i+1]



result_L.append(tmp)

print((max(result_L)))
import copy

n = int(eval(input()))
r_L = list(map(int, input().split()))
l_L = copy.deepcopy(r_L)
l_L.reverse()
r_ans, l_ans = 0, 0
r_ans_L, l_ans_L = [], []
for val in range(n - 1):
    if r_L[val] >= r_L[val + 1]:
        r_ans += 1
    else:
        r_ans_L.append(r_ans)
        r_ans = 0
l_ans_L.append(l_ans)
r_ans_L.append(r_ans)
print((max(max(l_ans_L), max(r_ans_L))))

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

-import copy - -r_L = list(map(int, input().split())) -l_L = copy.deepcopy(r_L) -l_L.reverse() -r_ans, l_ans = 0, 0 -r_ans_L, l_ans_L = [], [] -for val in range(n - 1): -    if r_L[val] >= r_L[val + 1]: -        r_ans += 1 +h_L = list(map(int, input().split())) +s = h_L[0] +tmp = 0 +result_L = [] +for i in range(0, n - 1): +    if s >= h_L[i + 1]: +        tmp += 1 -        r_ans_L.append(r_ans) -        r_ans = 0 -l_ans_L.append(l_ans) -r_ans_L.append(r_ans) -print((max(max(l_ans_L), max(r_ans_L)))) +        result_L.append(tmp) +        tmp = 0 +    s = h_L[i + 1] +result_L.append(tmp) +print((max(result_L)))