def main():

    H = open(0).read().split()[1:]

    ans = 0

    tmp = 0

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

        if int(h1) >= int(h2):

            tmp += 1

        else:

            if ans < tmp:

                ans = tmp

            tmp = 0

    if ans < tmp:

        ans = tmp

    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():
    H = open(0).read().split()[1:]
    ans = 0
    tmp = 0
    for h1, h2 in zip(H[:-1], H[1:]):
        if int(h1) >= int(h2):
            tmp += 1
        else:
            if ans < tmp:
                ans = tmp
            tmp = 0
    if ans < tmp:
        ans = tmp
    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 = open(0).read().split()[1:] +    eval(input()) +    H = list(map(int, input().split())) -    tmp = 0 -    for h1, h2 in zip(H[:-1], H[1:]): -        if int(h1) >= int(h2): -            tmp += 1 +    prev = float("inf") +    cnt = -1 +    for cur in H: +        if prev >= cur: +            cnt += 1 -            if ans < tmp: -                ans = tmp -            tmp = 0 -    if ans < tmp: -        ans = tmp +            if ans < cnt: +                ans = cnt +            cnt = 0 +        prev = cur +    if ans < cnt: +        ans = cnt