N = int(eval(input()))

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



r = 0

res = 0

for i in range(N - 1):

    if H_list[i] >= H_list[i + 1]:

        r += 1

        if r > res:

            res = r

    else:

        r = 0



if __name__ == "__main__":

    print(res)

def main():

    n = int(eval(input()))

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



    r = 0

    res = 0

    for i in range(n - 1):

        if h_list[i] >= h_list[i + 1]:

            r += 1

            if r > res:

                res = r

        else:

            r = 0

    print(res)





if __name__ == "__main__":

    main()

N = int(eval(input()))
H_list = list(map(int, input().split()))
r = 0
res = 0
for i in range(N - 1):
    if H_list[i] >= H_list[i + 1]:
        r += 1
        if r > res:
            res = r
    else:
        r = 0
if __name__ == "__main__":
    print(res)

def main():
    n = int(eval(input()))
    h_list = list(map(int, input().split()))
    r = 0
    res = 0
    for i in range(n - 1):
        if h_list[i] >= h_list[i + 1]:
            r += 1
            if r > res:
                res = r
        else:
            r = 0
    print(res)


if __name__ == "__main__":
    main()

-N = int(eval(input())) -H_list = list(map(int, input().split())) -r = 0 -res = 0 -for i in range(N - 1): -    if H_list[i] >= H_list[i + 1]: -        r += 1 -        if r > res: -            res = r -    else: -        r = 0 +def main(): +    n = int(eval(input())) +    h_list = list(map(int, input().split())) +    r = 0 +    res = 0 +    for i in range(n - 1): +        if h_list[i] >= h_list[i + 1]: +            r += 1 +            if r > res: +                res = r +        else: +            r = 0 +    print(res) + + -    print(res) +    main()