n = int (eval(input()))

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

count_list = []

count=0

for i in range(n):

   if i == n-1:

      break

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

      if count !=0:

         count +=1

      else:

         count = 1

   else:

      count = 0

   count_list.append(count)

if not count_list:

   count_list.append(0)

print((max(count_list)))
n = int(eval(input()))

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



count=0

h=0



for i in range(n-1):

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

    count+=1

  else:

    count=0

  if h<count:

    h=count

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

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

-h = list(map(int, input().split())) -count_list = [] +d = list(map(int, input().split())) -for i in range(n): -    if i == n - 1: -        break -    if h[i] >= h[i + 1]: -        if count != 0: -            count += 1 -        else: -            count = 1 +h = 0 +for i in range(n - 1): +    if d[i] >= d[i + 1]: +        count += 1 -    count_list.append(count) -if not count_list: -    count_list.append(0) -print((max(count_list))) +    if h < count: +        h = count +print(h)