n = int(eval(input()))

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

answer = 0#これなに

m = 0#カウントするやつやね

for i in range(n-1):

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

        m += 1

    else:

        answer = max(answer,m)

        m = 0

answer = max(answer,m)

print(answer)

n = int(eval(input()))

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

plsl = []

plsn = 0

for i in range(n-1):

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

        plsn += 1

    else: #i<i+1の時

        plsl.append(plsn)

        plsn = 0

plsl.append(plsn)

plsl.sort(reverse = True)

print((plsl[0]))

n = int(eval(input()))
h = list(map(int, input().split()))
answer = 0  # これなに
m = 0  # カウントするやつやね
for i in range(n - 1):
    if h[i] >= h[i + 1]:
        m += 1
    else:
        answer = max(answer, m)
        m = 0
answer = max(answer, m)
print(answer)

n = int(eval(input()))
h = list(map(int, input().split(" ")))
plsl = []
plsn = 0
for i in range(n - 1):
    if h[i] >= h[i + 1]:
        plsn += 1
    else:  # i<i+1の時
        plsl.append(plsn)
        plsn = 0
plsl.append(plsn)
plsl.sort(reverse=True)
print((plsl[0]))

-h = list(map(int, input().split())) -answer = 0  # これなに -m = 0  # カウントするやつやね +h = list(map(int, input().split(" "))) +plsl = [] +plsn = 0 -        m += 1 -    else: -        answer = max(answer, m) -        m = 0 -answer = max(answer, m) -print(answer) +        plsn += 1 +    else:  # i<i+1の時 +        plsl.append(plsn) +        plsn = 0 +plsl.append(plsn) +plsl.sort(reverse=True) +print((plsl[0]))