def main():

    eval(input())

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

    ans = 0

    prev = float('inf')

    cnt = -1

    for cur in H:

        if prev >= cur:

            cnt += 1

        else:

            if ans < cnt:

                ans = cnt

            cnt = 0

        prev = cur

    if ans < cnt:

        ans = cnt

    print(ans)

    return





main()

def main():

    eval(input())

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

    ans = 0

    prev = float('inf')

    cnt = -1

    for cur in H:

        if prev >= cur:

            cnt += 1

        else:

            if ans < cnt:

                ans = cnt

            cnt = 0

        prev = cur

    if ans < cnt:

        ans = cnt

    print(ans)

    return





main()

def main():
    eval(input())
    H = [int(i) for i in input().split()]
    ans = 0
    prev = float("inf")
    cnt = -1
    for cur in H:
        if prev >= cur:
            cnt += 1
        else:
            if ans < cnt:
                ans = cnt
            cnt = 0
        prev = cur
    if ans < cnt:
        ans = cnt
    print(ans)
    return


main()

def main():
    eval(input())
    H = list(map(int, input().split()))
    ans = 0
    prev = float("inf")
    cnt = -1
    for cur in H:
        if prev >= cur:
            cnt += 1
        else:
            if ans < cnt:
                ans = cnt
            cnt = 0
        prev = cur
    if ans < cnt:
        ans = cnt
    print(ans)
    return


main()

-    H = [int(i) for i in input().split()] +    H = list(map(int, input().split()))