n = int(eval(input()))

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



current_height = h[0]

current_count = 0

max_count = current_count

for i in range(1, n):

    if current_height >= h[i]:

        current_count += 1

    else:

        max_count = max(current_count, max_count)

        current_count = 0

    current_height = h[i]



max_count = max(current_count, max_count)

print(max_count)

n = int(eval(input()))

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



count = 0

max_value = 0

for i in range(n)[1::]:

    if h[i-1] >= h[i]:

        count += 1

    else:

        max_value = max(max_value, count)

        count = 0

max_value = max(max_value, count)

print(max_value)

n = int(eval(input()))
h = list(map(int, input().split()))
current_height = h[0]
current_count = 0
max_count = current_count
for i in range(1, n):
    if current_height >= h[i]:
        current_count += 1
    else:
        max_count = max(current_count, max_count)
        current_count = 0
    current_height = h[i]
max_count = max(current_count, max_count)
print(max_count)

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

-current_height = h[0] -current_count = 0 -max_count = current_count -for i in range(1, n): -    if current_height >= h[i]: -        current_count += 1 +count = 0 +max_value = 0 +for i in range(n)[1::]: +    if h[i - 1] >= h[i]: +        count += 1 -        max_count = max(current_count, max_count) -        current_count = 0 -    current_height = h[i] -max_count = max(current_count, max_count) -print(max_count) +        max_value = max(max_value, count) +        count = 0 +max_value = max(max_value, count) +print(max_value)