from sys import stdin



readline = stdin.readline



def main():

    eval(input())

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

    ans = 0

    prev = int(1e9+7)

    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 = list(map(int, open(0).read().split()[1:]))

    ans = 0

    prev = int(1e9+7)

    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()

from sys import stdin

readline = stdin.readline


def main():
    eval(input())
    H = list(map(int, readline().split()))
    ans = 0
    prev = int(1e9 + 7)
    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 = list(map(int, open(0).read().split()[1:]))
    ans = 0
    prev = int(1e9 + 7)
    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()

-from sys import stdin - -readline = stdin.readline - - -    eval(input()) -    H = list(map(int, readline().split())) +    H = list(map(int, open(0).read().split()[1:]))