n = int(eval(input()))

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



h_max = -1

ind = -1

cnt = -1

ans = -1

for i in range(n - 1, -1, -1):

    if h[i] >= h_max:

        ind = i

        h_max = h[i]

        cnt += 1

        ans = max(ans, cnt)

    else:

        h_max = h[i]

        cnt = 0

print(ans)

def main():

    N = int(eval(input()))



    ans = 0

    t = -1

    p = 1 << 30

    for h in map(int, input().split()):

        if p >= h:

            t += 1

            if ans < t:

                ans = t

        else:

            t = 0

        p = h



    print(ans)





if __name__ == '__main__':

    main()

n = int(eval(input()))
h = list(map(int, input().split()))
h_max = -1
ind = -1
cnt = -1
ans = -1
for i in range(n - 1, -1, -1):
    if h[i] >= h_max:
        ind = i
        h_max = h[i]
        cnt += 1
        ans = max(ans, cnt)
    else:
        h_max = h[i]
        cnt = 0
print(ans)

def main():
    N = int(eval(input()))
    ans = 0
    t = -1
    p = 1 << 30
    for h in map(int, input().split()):
        if p >= h:
            t += 1
            if ans < t:
                ans = t
        else:
            t = 0
        p = h
    print(ans)


if __name__ == "__main__":
    main()

-n = int(eval(input())) -h = list(map(int, input().split())) -h_max = -1 -ind = -1 -cnt = -1 -ans = -1 -for i in range(n - 1, -1, -1): -    if h[i] >= h_max: -        ind = i -        h_max = h[i] -        cnt += 1 -        ans = max(ans, cnt) -    else: -        h_max = h[i] -        cnt = 0 -print(ans) +def main(): +    N = int(eval(input())) +    ans = 0 +    t = -1 +    p = 1 << 30 +    for h in map(int, input().split()): +        if p >= h: +            t += 1 +            if ans < t: +                ans = t +        else: +            t = 0 +        p = h +    print(ans) + + +if __name__ == "__main__": +    main()