import numpy as np

n = int(eval(input()))

h = np.array([int(i) for i in input().split()])



dh = np.diff(h)

ans = 0

ans_l = []

for i in range(len(dh)):

    if dh[i] <= 0:

        ans += 1 

    elif dh[i] > 0:

        ans_l.append(ans)

        ans = 0

ans_l.append(ans)



print((max(ans_l)))
n = int(eval(input()))

h = [int(i) for i in input().split()]

ans = 0

a = 0

for i in range(n-1):

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

        a += 1

    else:

        ans = max(ans, a)

        a = 0

ans = max(ans, a)

print(ans)
import numpy as np

n = int(eval(input()))
h = np.array([int(i) for i in input().split()])
dh = np.diff(h)
ans = 0
ans_l = []
for i in range(len(dh)):
    if dh[i] <= 0:
        ans += 1
    elif dh[i] > 0:
        ans_l.append(ans)
        ans = 0
ans_l.append(ans)
print((max(ans_l)))

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

-import numpy as np - -h = np.array([int(i) for i in input().split()]) -dh = np.diff(h) +h = [int(i) for i in input().split()] -ans_l = [] -for i in range(len(dh)): -    if dh[i] <= 0: -        ans += 1 -    elif dh[i] > 0: -        ans_l.append(ans) -        ans = 0 -ans_l.append(ans) -print((max(ans_l))) +a = 0 +for i in range(n - 1): +    if h[i] >= h[i + 1]: +        a += 1 +    else: +        ans = max(ans, a) +        a = 0 +ans = max(ans, a) +print(ans)