n = int(eval(input()))

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

c = 0

m = 0

for i in range(n-1):

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

		if i == n - 1:

			c += 2

		else:

			c += 1

		m = max(c,m)

	else:

		c = 0

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

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

c = 0

m = 0

for i in range(n-1):

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

		c += 1

		m = max(c,m)

	else:

		c = 0

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

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

-        if i == n - 1: -            c += 2 -        else: -            c += 1 +        c += 1