import numpy as np



n = int(eval(input()))

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



h_copy = h.copy()

h_copy.pop(0)

h_copy.append(-1)

h = np.array(h)

h_copy = np.array(h_copy)



hh = h - h_copy

hh[n-1] = -1



ans = 0

temp = 0

for i in range(n):

    if hh[i] >=0:

        temp += 1

    else:

        ans = max(ans, temp)

        temp = 0

    

print(ans)
n = int(eval(input()))

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



maxi = 0

now = h[0]

cnt = 0

for i in range(1, n):

    if h[i] <= now:

        cnt += 1

        now = h[i]

        maxi = max(maxi, cnt)

    else:

        cnt = 0

        now = h[i]

print(maxi)
import numpy as np

n = int(eval(input()))
h = list(map(int, input().split()))
h_copy = h.copy()
h_copy.pop(0)
h_copy.append(-1)
h = np.array(h)
h_copy = np.array(h_copy)
hh = h - h_copy
hh[n - 1] = -1
ans = 0
temp = 0
for i in range(n):
    if hh[i] >= 0:
        temp += 1
    else:
        ans = max(ans, temp)
        temp = 0
print(ans)

n = int(eval(input()))
h = list(map(int, input().split()))
maxi = 0
now = h[0]
cnt = 0
for i in range(1, n):
    if h[i] <= now:
        cnt += 1
        now = h[i]
        maxi = max(maxi, cnt)
    else:
        cnt = 0
        now = h[i]
print(maxi)

-import numpy as np - -h_copy = h.copy() -h_copy.pop(0) -h_copy.append(-1) -h = np.array(h) -h_copy = np.array(h_copy) -hh = h - h_copy -hh[n - 1] = -1 -ans = 0 -temp = 0 -for i in range(n): -    if hh[i] >= 0: -        temp += 1 +maxi = 0 +now = h[0] +cnt = 0 +for i in range(1, n): +    if h[i] <= now: +        cnt += 1 +        now = h[i] +        maxi = max(maxi, cnt) -        ans = max(ans, temp) -        temp = 0 -print(ans) +        cnt = 0 +        now = h[i] +print(maxi)