#139

N = int(eval(input()))

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



count = 0

count_new = 0

flag = 0



for i in range(N-1):

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

#         print("i", i)

        count_new += 1

#         print(count)

        if i == N - 2 and flag == 0:

            flag = 1

            count = count_new 

#             print(count, "k")

        elif i == N - 2 and count_new > count:

            count = count_new

#             print(count)

    else:

        flag = 1

        if count_new > count:

            count = count_new

        count_new = 0



print(count)
N = int(eval(input()))

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



count = 0

c_max = 0

for i in range(N-1):

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

        count += 1

    else:

        if c_max < count:

            c_max = count

        count = 0



print((max(c_max, count)))
# 139
N = int(eval(input()))
H = list(map(int, input().split()))
count = 0
count_new = 0
flag = 0
for i in range(N - 1):
    if H[i] >= H[i + 1]:
        #         print("i", i)
        count_new += 1
        #         print(count)
        if i == N - 2 and flag == 0:
            flag = 1
            count = count_new
        #             print(count, "k")
        elif i == N - 2 and count_new > count:
            count = count_new
    #             print(count)
    else:
        flag = 1
        if count_new > count:
            count = count_new
        count_new = 0
print(count)

N = int(eval(input()))
H = list(map(int, input().split()))
count = 0
c_max = 0
for i in range(N - 1):
    if H[i] >= H[i + 1]:
        count += 1
    else:
        if c_max < count:
            c_max = count
        count = 0
print((max(c_max, count)))

-# 139 -count_new = 0 -flag = 0 +c_max = 0 -        #         print("i", i) -        count_new += 1 -        #         print(count) -        if i == N - 2 and flag == 0: -            flag = 1 -            count = count_new -        #             print(count, "k") -        elif i == N - 2 and count_new > count: -            count = count_new -    #             print(count) +        count += 1 -        flag = 1 -        if count_new > count: -            count = count_new -        count_new = 0 -print(count) +        if c_max < count: +            c_max = count +        count = 0 +print((max(c_max, count)))