n = int(eval(input()))



count = 0

max_count = 0

pre_height = -1



for height in list(map(int, input().split())):

    if (pre_height < height):

        if (max_count < count):

            max_count = count

        count = 0

        pre_height = height

        

        continue

    

    count += 1

    pre_height = height



if (max_count < count):

    max_count = count



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

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



count = 0

max_count = 0

pre_height = -1



for height in h_list:

    if (pre_height < height):

        if (max_count < count):

            max_count = count

        count = 0

        pre_height = height

        

        continue

    

    count += 1

    pre_height = height



if (max_count < count):

    max_count = count



print(max_count)
n = int(eval(input()))
count = 0
max_count = 0
pre_height = -1
for height in list(map(int, input().split())):
    if pre_height < height:
        if max_count < count:
            max_count = count
        count = 0
        pre_height = height
        continue
    count += 1
    pre_height = height
if max_count < count:
    max_count = count
print(max_count)

n = int(eval(input()))
h_list = list(map(int, input().split()))
count = 0
max_count = 0
pre_height = -1
for height in h_list:
    if pre_height < height:
        if max_count < count:
            max_count = count
        count = 0
        pre_height = height
        continue
    count += 1
    pre_height = height
if max_count < count:
    max_count = count
print(max_count)

+h_list = list(map(int, input().split())) -for height in list(map(int, input().split())): +for height in h_list: