# Problem C - Lower

# input process
N = int(input())
h_list = list(map(int, input().split()))
h_len = len(h_list)

# initialization
max_step = 0
tmp_step = 0

# step process
for i in range(N-1):
    if h_list[i]>=h_list[i+1]:
        tmp_step += 1
    else:
        max_step = max(max_step, tmp_step)
        tmp_step = 0
max_step = max(max_step, tmp_step)

print(max_step)

1ec3bd2a7d1f14b79c5330eb56f1417e8b9ed906
<mask token>

<mask token>
for i in range(N - 1):
    if h_list[i] >= h_list[i + 1]:
        tmp_step += 1
    else:
        max_step = max(max_step, tmp_step)
        tmp_step = 0
<mask token>
print(max_step)

N = int(input())
h_list = list(map(int, input().split()))
h_len = len(h_list)
max_step = 0
tmp_step = 0
for i in range(N - 1):
    if h_list[i] >= h_list[i + 1]:
        tmp_step += 1
    else:
        max_step = max(max_step, tmp_step)
        tmp_step = 0
max_step = max(max_step, tmp_step)
print(max_step)

# Problem C - Lower

# input process
N = int(input())
h_list = list(map(int, input().split()))
h_len = len(h_list)

# initialization
max_step = 0
tmp_step = 0

# step process
for i in range(N-1):
    if h_list[i]>=h_list[i+1]:
        tmp_step += 1
    else:
        max_step = max(max_step, tmp_step)
        tmp_step = 0
max_step = max(max_step, tmp_step)

print(max_step)
