N = int(eval(input()))

H = [int(x) for x in input().split()]



count = []

current_count = 0

for x in range(N - 1):

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

        current_count += 1

    else:

        count.append(current_count)

        current_count = 0

count.append(current_count)



print((max(count)))
import sys



sys.setrecursionlimit(10 ** 8)



input = sys.stdin.readline





def main():

    N = int(eval(input()))

    H = [int(x) for x in input().split()]



    cnt = 0

    prev = H[0]

    ans = 0

    for i in range(1, N):

        if prev >= H[i]:

            cnt += 1

        else:

            ans = max(ans, cnt)

            cnt = 0

        prev = H[i]



    ans = max(ans, cnt)

    print(ans)





    



if __name__ == '__main__':

    main()



N = int(eval(input()))
H = [int(x) for x in input().split()]
count = []
current_count = 0
for x in range(N - 1):
    if H[x] >= H[x + 1]:
        current_count += 1
    else:
        count.append(current_count)
        current_count = 0
count.append(current_count)
print((max(count)))

import sys

sys.setrecursionlimit(10**8)
input = sys.stdin.readline


def main():
    N = int(eval(input()))
    H = [int(x) for x in input().split()]
    cnt = 0
    prev = H[0]
    ans = 0
    for i in range(1, N):
        if prev >= H[i]:
            cnt += 1
        else:
            ans = max(ans, cnt)
            cnt = 0
        prev = H[i]
    ans = max(ans, cnt)
    print(ans)


if __name__ == "__main__":
    main()

-N = int(eval(input())) -H = [int(x) for x in input().split()] -count = [] -current_count = 0 -for x in range(N - 1): -    if H[x] >= H[x + 1]: -        current_count += 1 -    else: -        count.append(current_count) -        current_count = 0 -count.append(current_count) -print((max(count))) +import sys + +sys.setrecursionlimit(10**8) +input = sys.stdin.readline + + +def main(): +    N = int(eval(input())) +    H = [int(x) for x in input().split()] +    cnt = 0 +    prev = H[0] +    ans = 0 +    for i in range(1, N): +        if prev >= H[i]: +            cnt += 1 +        else: +            ans = max(ans, cnt) +            cnt = 0 +        prev = H[i] +    ans = max(ans, cnt) +    print(ans) + + +if __name__ == "__main__": +    main()