n=int(eval(input()))

ans=0

now=input().split()

a=0

for i in range(len(now)-1):

    if int(now[i])>=int(now[i+1]):

        a+=1

    else :

        a=0

    # print(a)

    ans=max(ans,a)

print(ans)
from sys import stdin

n=int(stdin.readline())

ans=0

now=list(map(int,stdin.readline().split()))

a=0

for i in range(len(now)-1):

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

        a+=1

    else :

        a=0

    # print(a)

    ans=max(ans,a)

print(ans)
n = int(eval(input()))
ans = 0
now = input().split()
a = 0
for i in range(len(now) - 1):
    if int(now[i]) >= int(now[i + 1]):
        a += 1
    else:
        a = 0
    # print(a)
    ans = max(ans, a)
print(ans)

from sys import stdin

n = int(stdin.readline())
ans = 0
now = list(map(int, stdin.readline().split()))
a = 0
for i in range(len(now) - 1):
    if now[i] >= now[i + 1]:
        a += 1
    else:
        a = 0
    # print(a)
    ans = max(ans, a)
print(ans)

-n = int(eval(input())) +from sys import stdin + +n = int(stdin.readline()) -now = input().split() +now = list(map(int, stdin.readline().split())) -    if int(now[i]) >= int(now[i + 1]): +    if now[i] >= now[i + 1]: