N, *H = list(map(int, open(0).read().split()))

diff = [H[i + 1] - H[i] <= 0 for i in range(N - 1)]



ans = 0

tmp = 0

for v in diff:

    if v:

        tmp += 1

    else:

        ans = max(ans, tmp)

        tmp = 0

        



print((max(ans, tmp)))



N = int(eval(input()))

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



ans = 0

cnt = 0

cur = X[0]

for i in range(1, N):

    if cur < X[i]:

        ans = max(ans, cnt)

        cnt = 0

    else:

        cnt += 1

    cur = X[i]



print((max(ans, cnt)))

N, *H = list(map(int, open(0).read().split()))
diff = [H[i + 1] - H[i] <= 0 for i in range(N - 1)]
ans = 0
tmp = 0
for v in diff:
    if v:
        tmp += 1
    else:
        ans = max(ans, tmp)
        tmp = 0
print((max(ans, tmp)))

N = int(eval(input()))
X = list(map(int, input().split()))
ans = 0
cnt = 0
cur = X[0]
for i in range(1, N):
    if cur < X[i]:
        ans = max(ans, cnt)
        cnt = 0
    else:
        cnt += 1
    cur = X[i]
print((max(ans, cnt)))

-N, *H = list(map(int, open(0).read().split())) -diff = [H[i + 1] - H[i] <= 0 for i in range(N - 1)] +N = int(eval(input())) +X = list(map(int, input().split())) -tmp = 0 -for v in diff: -    if v: -        tmp += 1 +cnt = 0 +cur = X[0] +for i in range(1, N): +    if cur < X[i]: +        ans = max(ans, cnt) +        cnt = 0 -        ans = max(ans, tmp) -        tmp = 0 -print((max(ans, tmp))) +        cnt += 1 +    cur = X[i] +print((max(ans, cnt)))