N = int(eval(input()))

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



counter = -1

last_h = float('inf')

_max = 0

for h in H:

    if h <= last_h:

        counter += 1

    else:

        if _max < counter:

            _max = counter

        counter = 0

    last_h = h

if _max < counter:

    _max = counter

print(_max)
def solve(N, H):

    last_h = float('inf')

    _count = -1

    _max = 0

    for h in H:

        if h <= last_h:

            _count += 1

        else:

            if _max < _count:

                _max = _count

            _count = 0

        last_h = h

    if _max < _count:

        _max = _count

    return _max





if __name__ == '__main__':

    N = int(eval(input()))

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

    

    ans = solve(N, H)

    

    print(ans)
N = int(eval(input()))
H = list(map(int, input().split()))
counter = -1
last_h = float("inf")
_max = 0
for h in H:
    if h <= last_h:
        counter += 1
    else:
        if _max < counter:
            _max = counter
        counter = 0
    last_h = h
if _max < counter:
    _max = counter
print(_max)

def solve(N, H):
    last_h = float("inf")
    _count = -1
    _max = 0
    for h in H:
        if h <= last_h:
            _count += 1
        else:
            if _max < _count:
                _max = _count
            _count = 0
        last_h = h
    if _max < _count:
        _max = _count
    return _max


if __name__ == "__main__":
    N = int(eval(input()))
    H = list(map(int, input().split()))
    ans = solve(N, H)
    print(ans)

-N = int(eval(input())) -H = list(map(int, input().split())) -counter = -1 -last_h = float("inf") -_max = 0 -for h in H: -    if h <= last_h: -        counter += 1 -    else: -        if _max < counter: -            _max = counter -        counter = 0 -    last_h = h -if _max < counter: -    _max = counter -print(_max) +def solve(N, H): +    last_h = float("inf") +    _count = -1 +    _max = 0 +    for h in H: +        if h <= last_h: +            _count += 1 +        else: +            if _max < _count: +                _max = _count +            _count = 0 +        last_h = h +    if _max < _count: +        _max = _count +    return _max + + +if __name__ == "__main__": +    N = int(eval(input())) +    H = list(map(int, input().split())) +    ans = solve(N, H) +    print(ans)