if __name__ == "__main__":

    b = int(eval(input()))

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

    a = a[::-1]

    count = 0

    value = 0

    for i in range(1, b):

        if a[i-1] <= a[i]: count+=1

        else: count = 0

        value = max(count, value)

    print(value)

    
n = eval(input())

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

#b = list(map(int, input().split()))

#c = list(map(int, input().split()))

m = 0

c = 0

for i in range(1, len(a)):

    if a[i] <= a[i-1]:

        c += 1

        m = max(m, c)

    else:

        c = 0

print(m)
if __name__ == "__main__":
    b = int(eval(input()))
    a = list(map(int, input().split()))
    a = a[::-1]
    count = 0
    value = 0
    for i in range(1, b):
        if a[i - 1] <= a[i]:
            count += 1
        else:
            count = 0
        value = max(count, value)
    print(value)

n = eval(input())
a = list(map(int, input().split()))
# b = list(map(int, input().split()))
# c = list(map(int, input().split()))
m = 0
c = 0
for i in range(1, len(a)):
    if a[i] <= a[i - 1]:
        c += 1
        m = max(m, c)
    else:
        c = 0
print(m)

-if __name__ == "__main__": -    b = int(eval(input())) -    a = list(map(int, input().split())) -    a = a[::-1] -    count = 0 -    value = 0 -    for i in range(1, b): -        if a[i - 1] <= a[i]: -            count += 1 -        else: -            count = 0 -        value = max(count, value) -    print(value) +n = eval(input()) +a = list(map(int, input().split())) +# b = list(map(int, input().split())) +# c = list(map(int, input().split())) +m = 0 +c = 0 +for i in range(1, len(a)): +    if a[i] <= a[i - 1]: +        c += 1 +        m = max(m, c) +    else: +        c = 0 +print(m)