n = int(eval(input()))

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



left = 0

right = 0

res = 0

while left < n:

    prev = nums[left]

    right = left

    while right < n and prev >= nums[right]:

        right += 1

        prev = nums[right - 1]

    res = max(res, right - left)

    left = right

print((res - 1))
import sys



input = sys.stdin.readline



ri = lambda: int(eval(input()))

rs = lambda: input().rstrip()

ril = lambda: list(map(int, input().split()))

rsl = lambda: input().rstrip().split()

ris = lambda n: [ri() for _ in range(n)]

rss = lambda n: [rs() for _ in range(n)]

rils = lambda n: [ril() for _ in range(n)]

rsls = lambda n: [rsl() for _ in range(n)]



n = ri()

ls = ril()

res = 0

prev = ls[0]

count = 0

for x in ls[1:]:

    if x <= prev:

        count += 1

    else:

        res = max(res, count)

        count = 0

    prev = x

res = max(res, count)

print(res)
n = int(eval(input()))
nums = list(map(int, input().split()))
left = 0
right = 0
res = 0
while left < n:
    prev = nums[left]
    right = left
    while right < n and prev >= nums[right]:
        right += 1
        prev = nums[right - 1]
    res = max(res, right - left)
    left = right
print((res - 1))

import sys

input = sys.stdin.readline
ri = lambda: int(eval(input()))
rs = lambda: input().rstrip()
ril = lambda: list(map(int, input().split()))
rsl = lambda: input().rstrip().split()
ris = lambda n: [ri() for _ in range(n)]
rss = lambda n: [rs() for _ in range(n)]
rils = lambda n: [ril() for _ in range(n)]
rsls = lambda n: [rsl() for _ in range(n)]
n = ri()
ls = ril()
res = 0
prev = ls[0]
count = 0
for x in ls[1:]:
    if x <= prev:
        count += 1
    else:
        res = max(res, count)
        count = 0
    prev = x
res = max(res, count)
print(res)

-n = int(eval(input())) -nums = list(map(int, input().split())) -left = 0 -right = 0 +import sys + +input = sys.stdin.readline +ri = lambda: int(eval(input())) +rs = lambda: input().rstrip() +ril = lambda: list(map(int, input().split())) +rsl = lambda: input().rstrip().split() +ris = lambda n: [ri() for _ in range(n)] +rss = lambda n: [rs() for _ in range(n)] +rils = lambda n: [ril() for _ in range(n)] +rsls = lambda n: [rsl() for _ in range(n)] +n = ri() +ls = ril() -while left < n: -    prev = nums[left] -    right = left -    while right < n and prev >= nums[right]: -        right += 1 -        prev = nums[right - 1] -    res = max(res, right - left) -    left = right -print((res - 1)) +prev = ls[0] +count = 0 +for x in ls[1:]: +    if x <= prev: +        count += 1 +    else: +        res = max(res, count) +        count = 0 +    prev = x +res = max(res, count) +print(res)