# -*- coding: utf-8 -*-

"""

Created on Wed Mar 25 10:13:10 2020



@author: Kanaru Sato

"""



N = int(eval(input()))

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

ans = 0

count = 0



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

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

        count += 1

        ans = max(ans,count)

    else:

        count = 0



print(ans)
# -*- coding: utf-8 -*-

"""

Created on Wed Mar 25 10:13:10 2020



@author: Kanaru Sato

"""



N = int(eval(input()))

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

record = 0

count = 0



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

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

        count += 1

    else:

        record = max(count,record)

        count = 0



ans = max(record,count)



print(ans)
# -*- coding: utf-8 -*-
"""
Created on Wed Mar 25 10:13:10 2020
@author: Kanaru Sato
"""
N = int(eval(input()))
H = list(map(int, input().split()))
ans = 0
count = 0
for i in range(0, N - 1):
    if H[i] >= H[i + 1]:
        count += 1
        ans = max(ans, count)
    else:
        count = 0
print(ans)

# -*- coding: utf-8 -*-
"""
Created on Wed Mar 25 10:13:10 2020
@author: Kanaru Sato
"""
N = int(eval(input()))
H = list(map(int, input().split()))
record = 0
count = 0
for i in range(0, N - 1):
    if H[i] >= H[i + 1]:
        count += 1
    else:
        record = max(count, record)
        count = 0
ans = max(record, count)
print(ans)

-ans = 0 +record = 0 -        ans = max(ans, count) +        record = max(count, record) +ans = max(record, count)