from itertools import groupby



N=int(eval(input()))

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

New=[]

_max=0

for _ in range(N-1):

    if H[_]>=H[_+1]:

        New.append(1)

    else:

        New.append(0)

for k,h in groupby(New):

    _sum=sum(list(h))

    if k==1 and _sum>_max:

        _max=_sum

print(_max)

from itertools import groupby



N=int(eval(input()))

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

New=[1 if H[_]>=H[_+1] else 0 for _ in range(N-1)]

_max=0

for k,h in groupby(New):

    _sum=sum(list(h))

    if k==1 and _sum>_max:

        _max=_sum

print(_max)

from itertools import groupby

N = int(eval(input()))
H = list(map(int, input().split()))
New = []
_max = 0
for _ in range(N - 1):
    if H[_] >= H[_ + 1]:
        New.append(1)
    else:
        New.append(0)
for k, h in groupby(New):
    _sum = sum(list(h))
    if k == 1 and _sum > _max:
        _max = _sum
print(_max)

from itertools import groupby

N = int(eval(input()))
H = list(map(int, input().split()))
New = [1 if H[_] >= H[_ + 1] else 0 for _ in range(N - 1)]
_max = 0
for k, h in groupby(New):
    _sum = sum(list(h))
    if k == 1 and _sum > _max:
        _max = _sum
print(_max)

-New = [] +New = [1 if H[_] >= H[_ + 1] else 0 for _ in range(N - 1)] -for _ in range(N - 1): -    if H[_] >= H[_ + 1]: -        New.append(1) -    else: -        New.append(0)