N = int(eval(input()))

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

 

if N == 1:

    print((0))

    quit()



start = 0

moves = []

for i in range(N-1):

    moves.append(i - start)

    if H[i] < H[i+1]:

        start = i + 1

if H[N-2] >= H[N-1]:

    moves.append(i - start + 1)

print((max(moves)))
N = int(eval(input()))

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

 

if N == 1:

    print((0))

    quit()



count = 0

moves = []

for h0, h1 in zip(H,H[1:]):

    if h0 >= h1:

        count += 1

    else:

        moves.append(count)

        count = 0

print((max(moves + [count])))

N = int(eval(input()))
H = list(map(int, input().split()))
if N == 1:
    print((0))
    quit()
start = 0
moves = []
for i in range(N - 1):
    moves.append(i - start)
    if H[i] < H[i + 1]:
        start = i + 1
if H[N - 2] >= H[N - 1]:
    moves.append(i - start + 1)
print((max(moves)))

N = int(eval(input()))
H = list(map(int, input().split()))
if N == 1:
    print((0))
    quit()
count = 0
moves = []
for h0, h1 in zip(H, H[1:]):
    if h0 >= h1:
        count += 1
    else:
        moves.append(count)
        count = 0
print((max(moves + [count])))

-start = 0 +count = 0 -for i in range(N - 1): -    moves.append(i - start) -    if H[i] < H[i + 1]: -        start = i + 1 -if H[N - 2] >= H[N - 1]: -    moves.append(i - start + 1) -print((max(moves))) +for h0, h1 in zip(H, H[1:]): +    if h0 >= h1: +        count += 1 +    else: +        moves.append(count) +        count = 0 +print((max(moves + [count])))