n = int(eval(input()))

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

b = [a[i]-a[i+1] for i in range(n-1)]

c = [0]

x = 0

for i in range(n-1):

    if b[i] >= 0:

        x += 1

        c.append(x)

    else:

        x = 0

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

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

c = [0]

x = 0

for i in range(n-1):

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

        x += 1

        c.append(x)

    else:

        x = 0

print((max(c)))
n = int(eval(input()))
a = list(map(int, input().split()))
b = [a[i] - a[i + 1] for i in range(n - 1)]
c = [0]
x = 0
for i in range(n - 1):
    if b[i] >= 0:
        x += 1
        c.append(x)
    else:
        x = 0
print((max(c)))

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

-b = [a[i] - a[i + 1] for i in range(n - 1)] -    if b[i] >= 0: +    if a[i] >= a[i + 1]: