N = int(eval(input()))

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



if N == 1:

    print((0))

else:

    ans = 0

    H1 = H[0]

    H2 = H[1]

    count = 1

    move = 0

    while count != N:

        count += 1

        if H2 <= H1:

            move += 1

            ans = max(ans, move)

        else:

            move = 0

        if count != N:

            H1 = H2

            H2 = H[count]



    print(ans)

N = int(eval(input()))

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



ans = 0

count = 0

for i in range(N - 1):

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

        count += 1

        ans = max(ans, count)

    else:

        count = 0



print(ans)

N = int(eval(input()))
H = list(map(int, input().split()))
if N == 1:
    print((0))
else:
    ans = 0
    H1 = H[0]
    H2 = H[1]
    count = 1
    move = 0
    while count != N:
        count += 1
        if H2 <= H1:
            move += 1
            ans = max(ans, move)
        else:
            move = 0
        if count != N:
            H1 = H2
            H2 = H[count]
    print(ans)

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

-if N == 1: -    print((0)) -else: -    ans = 0 -    H1 = H[0] -    H2 = H[1] -    count = 1 -    move = 0 -    while count != N: +ans = 0 +count = 0 +for i in range(N - 1): +    if H[i] >= H[i + 1]: -        if H2 <= H1: -            move += 1 -            ans = max(ans, move) -        else: -            move = 0 -        if count != N: -            H1 = H2 -            H2 = H[count] -    print(ans) +        ans = max(ans, count) +    else: +        count = 0 +print(ans)