n=int(eval(input()))

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

l=[]

for i in range(n-1):

    if h[i+1]-h[i]<=0:

        l.append(1)

    else:

        l.append(0)

ans=0

mn=0

for j in range(len(l)):

    if l[j]==0:

        ans=0

    else:

        ans+=1

        mn=max(ans,mn)

print(mn)
n = int(eval(input()))

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

c_list = []

count = 0

for i in range(n-1):

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

        count += 1

    else:

        c_list.append(count)

        count = 0

c_list.append(count)

print((max(c_list)))

n = int(eval(input()))
h = list(map(int, input().split()))
l = []
for i in range(n - 1):
    if h[i + 1] - h[i] <= 0:
        l.append(1)
    else:
        l.append(0)
ans = 0
mn = 0
for j in range(len(l)):
    if l[j] == 0:
        ans = 0
    else:
        ans += 1
        mn = max(ans, mn)
print(mn)

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

-l = [] +c_list = [] +count = 0 -    if h[i + 1] - h[i] <= 0: -        l.append(1) +    if h[i] >= h[i + 1]: +        count += 1 -        l.append(0) -ans = 0 -mn = 0 -for j in range(len(l)): -    if l[j] == 0: -        ans = 0 -    else: -        ans += 1 -        mn = max(ans, mn) -print(mn) +        c_list.append(count) +        count = 0 +c_list.append(count) +print((max(c_list)))