n=int(eval(input()))

inf=10*100

h=list(map(int,input().split()))+[inf]

n=len(h)

length=[0]*(n-1)+[1]

cnt=[]

move=0

for i in range(n-1):

    if h[i]<h[i+1]:

        length[i+1]=1

        if i==0:

            length[i]=1

for i in range(1,n):

    if length[i]==0:

        move+=1

    else:

        cnt.append(move)

        move=0

if len(cnt)==0:

    print((n-2))

else:

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

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

cnt=[]

move=0

for i in range(n-1):

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

        move+=1

    else:

        cnt.append(move)

        move=0

cnt.append(move)

print((max(cnt)))
n = int(eval(input()))
inf = 10 * 100
h = list(map(int, input().split())) + [inf]
n = len(h)
length = [0] * (n - 1) + [1]
cnt = []
move = 0
for i in range(n - 1):
    if h[i] < h[i + 1]:
        length[i + 1] = 1
        if i == 0:
            length[i] = 1
for i in range(1, n):
    if length[i] == 0:
        move += 1
    else:
        cnt.append(move)
        move = 0
if len(cnt) == 0:
    print((n - 2))
else:
    print((max(cnt)))

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

-inf = 10 * 100 -h = list(map(int, input().split())) + [inf] -n = len(h) -length = [0] * (n - 1) + [1] +h = list(map(int, input().split())) -    if h[i] < h[i + 1]: -        length[i + 1] = 1 -        if i == 0: -            length[i] = 1 -for i in range(1, n): -    if length[i] == 0: +    if h[i] >= h[i + 1]: -if len(cnt) == 0: -    print((n - 2)) -else: -    print((max(cnt))) +cnt.append(move) +print((max(cnt)))