def solve(string):

    n, *h = list(map(int, string.split()))

    ans = count = 0

    for h0, h1 in zip(h, h[1:]):

        if h0 >= h1:

            count += 1

        else:

            ans = max(ans, count)

            count = 0

    return str(max(ans, count))





if __name__ == '__main__':

    print((solve('\n'.join([eval(input()), eval(input())]))))

def solve(string):

    n, *h = list(map(int, string.split()))

    s = "".join(["1" if h0 >= h1 else "0" for h0, h1 in zip(h, h[1:])]).split("0")

    return str(max(list(map(len, s))))





if __name__ == '__main__':

    print((solve('\n'.join([eval(input()), eval(input())]))))

def solve(string):
    n, *h = list(map(int, string.split()))
    ans = count = 0
    for h0, h1 in zip(h, h[1:]):
        if h0 >= h1:
            count += 1
        else:
            ans = max(ans, count)
            count = 0
    return str(max(ans, count))


if __name__ == "__main__":
    print((solve("\n".join([eval(input()), eval(input())]))))

def solve(string):
    n, *h = list(map(int, string.split()))
    s = "".join(["1" if h0 >= h1 else "0" for h0, h1 in zip(h, h[1:])]).split("0")
    return str(max(list(map(len, s))))


if __name__ == "__main__":
    print((solve("\n".join([eval(input()), eval(input())]))))

-    ans = count = 0 -    for h0, h1 in zip(h, h[1:]): -        if h0 >= h1: -            count += 1 -        else: -            ans = max(ans, count) -            count = 0 -    return str(max(ans, count)) +    s = "".join(["1" if h0 >= h1 else "0" for h0, h1 in zip(h, h[1:])]).split("0") +    return str(max(list(map(len, s))))