n = int(eval(input()))

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



ans = 0

height = h[0]

count = 0

i = 1

while i < n:

	if h[i] <= height:

		count += 1

		height = h[i]

		i += 1

	else:

		ans = max(ans,count)

		count = 0

		height = h[i]

		i += 1

print((max(ans,count)))

n = int(eval(input()))

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



ans = 0

tmp = 0

for i in range(n-1):

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

		tmp += 1

	else:

		ans = max(ans,tmp)

		tmp = 0

ans = max(ans,tmp)

print(ans)

n = int(eval(input()))
h = list(map(int, input().split()))
ans = 0
height = h[0]
count = 0
i = 1
while i < n:
    if h[i] <= height:
        count += 1
        height = h[i]
        i += 1
    else:
        ans = max(ans, count)
        count = 0
        height = h[i]
        i += 1
print((max(ans, count)))

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

-height = h[0] -count = 0 -i = 1 -while i < n: -    if h[i] <= height: -        count += 1 -        height = h[i] -        i += 1 +tmp = 0 +for i in range(n - 1): +    if h[i] >= h[i + 1]: +        tmp += 1 -        ans = max(ans, count) -        count = 0 -        height = h[i] -        i += 1 -print((max(ans, count))) +        ans = max(ans, tmp) +        tmp = 0 +ans = max(ans, tmp) +print(ans)