N = int(eval(input()))

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

now = Hlist[0]

ans = 0

num = 0

for i in range(N - 1):

    if Hlist[i + 1] <= now:

        num += 1

    else:

        ans = max(ans, num)

        num = 0

    now = Hlist[i + 1]

    # print(ans, num)

print((max(ans, num)))

N = int(eval(input()))

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

ans = 0

c = 0

now = Hlist[0]

for next_step in Hlist[1:]:

    if next_step <= now:

        c += 1

    else:

        ans = max(ans, c)

        c = 0

    now = next_step

ans = max(ans, c)



print(ans)

N = int(eval(input()))
Hlist = list(map(int, input().split()))
now = Hlist[0]
ans = 0
num = 0
for i in range(N - 1):
    if Hlist[i + 1] <= now:
        num += 1
    else:
        ans = max(ans, num)
        num = 0
    now = Hlist[i + 1]
    # print(ans, num)
print((max(ans, num)))

N = int(eval(input()))
Hlist = list(map(int, input().split()))
ans = 0
c = 0
now = Hlist[0]
for next_step in Hlist[1:]:
    if next_step <= now:
        c += 1
    else:
        ans = max(ans, c)
        c = 0
    now = next_step
ans = max(ans, c)
print(ans)

+ans = 0 +c = 0 -ans = 0 -num = 0 -for i in range(N - 1): -    if Hlist[i + 1] <= now: -        num += 1 +for next_step in Hlist[1:]: +    if next_step <= now: +        c += 1 -        ans = max(ans, num) -        num = 0 -    now = Hlist[i + 1] -    # print(ans, num) -print((max(ans, num))) +        ans = max(ans, c) +        c = 0 +    now = next_step +ans = max(ans, c) +print(ans)