import numpy as np





N = int(eval(input()))

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



answer = 0



L1 = (H[:-1] >= H[1:])

#print(L1)



answer = 0

count = 0

for l in L1:

    if l:

        count += 1

    else:

        answer = max(answer, count)

        count = 0



print((max(answer, count)))
import sys

import numpy as np



sr = lambda: sys.stdin.readline().rstrip()

ir = lambda: int(sr())

lr = lambda: list(map(int, sr().split()))



N = ir()

H = np.array([-10] + lr() + [10**10])

x = H[1:] <= H[:-1]



temp = np.arange(len(x))

temp[x>0] = 0

np.maximum.accumulate(temp, out=temp)

left = temp

x_reversed = x[::-1]

temp = np.arange(len(x))

temp[x_reversed > 0] = 0

np.maximum.accumulate(temp, out=temp)

right = len(x) - 1 - temp[::-1]

y = right

y -= left + 1

y[x == 0] = 0

answer = y.max()

print(answer)

import numpy as np

N = int(eval(input()))
H = np.array(list(map(int, input().split())))
answer = 0
L1 = H[:-1] >= H[1:]
# print(L1)
answer = 0
count = 0
for l in L1:
    if l:
        count += 1
    else:
        answer = max(answer, count)
        count = 0
print((max(answer, count)))

import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
N = ir()
H = np.array([-10] + lr() + [10**10])
x = H[1:] <= H[:-1]
temp = np.arange(len(x))
temp[x > 0] = 0
np.maximum.accumulate(temp, out=temp)
left = temp
x_reversed = x[::-1]
temp = np.arange(len(x))
temp[x_reversed > 0] = 0
np.maximum.accumulate(temp, out=temp)
right = len(x) - 1 - temp[::-1]
y = right
y -= left + 1
y[x == 0] = 0
answer = y.max()
print(answer)

+import sys -N = int(eval(input())) -H = np.array(list(map(int, input().split()))) -answer = 0 -L1 = H[:-1] >= H[1:] -# print(L1) -answer = 0 -count = 0 -for l in L1: -    if l: -        count += 1 -    else: -        answer = max(answer, count) -        count = 0 -print((max(answer, count))) +sr = lambda: sys.stdin.readline().rstrip() +ir = lambda: int(sr()) +lr = lambda: list(map(int, sr().split())) +N = ir() +H = np.array([-10] + lr() + [10**10]) +x = H[1:] <= H[:-1] +temp = np.arange(len(x)) +temp[x > 0] = 0 +np.maximum.accumulate(temp, out=temp) +left = temp +x_reversed = x[::-1] +temp = np.arange(len(x)) +temp[x_reversed > 0] = 0 +np.maximum.accumulate(temp, out=temp) +right = len(x) - 1 - temp[::-1] +y = right +y -= left + 1 +y[x == 0] = 0 +answer = y.max() +print(answer)