def c_lower():

    N = int(eval(input()))

    H = [int(i) for i in input().split()]

    can_move = [0] * N

    for i in range(N - 1):

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

            can_move[i] = 1

    cnt = 0

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

        if can_move[i] != 0:

            cnt += 1

            can_move[i] = cnt

        else:

            cnt = 0

    return max(can_move)



print((c_lower()))
def c_lower():

    N = int(eval(input()))

    H = [int(i) for i in input().split()] + [float('inf')]



    can_move = []

    tmp = 0

    for i in range(N):

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

            tmp += 1

        else:

            can_move.append(tmp)

            tmp = 0

    return max(can_move)



print((c_lower()))
def c_lower():
    N = int(eval(input()))
    H = [int(i) for i in input().split()]
    can_move = [0] * N
    for i in range(N - 1):
        if H[i] >= H[i + 1]:
            can_move[i] = 1
    cnt = 0
    for i in range(N - 1, -1, -1):
        if can_move[i] != 0:
            cnt += 1
            can_move[i] = cnt
        else:
            cnt = 0
    return max(can_move)


print((c_lower()))

def c_lower():
    N = int(eval(input()))
    H = [int(i) for i in input().split()] + [float("inf")]
    can_move = []
    tmp = 0
    for i in range(N):
        if H[i] >= H[i + 1]:
            tmp += 1
        else:
            can_move.append(tmp)
            tmp = 0
    return max(can_move)


print((c_lower()))

-    H = [int(i) for i in input().split()] -    can_move = [0] * N -    for i in range(N - 1): +    H = [int(i) for i in input().split()] + [float("inf")] +    can_move = [] +    tmp = 0 +    for i in range(N): -            can_move[i] = 1 -    cnt = 0 -    for i in range(N - 1, -1, -1): -        if can_move[i] != 0: -            cnt += 1 -            can_move[i] = cnt +            tmp += 1 -            cnt = 0 +            can_move.append(tmp) +            tmp = 0