#ロジックは簡単だったが実装に手間取った. 

n = int(eval(input()))

h = [int(_) for _ in input().split()]

h.append(0) #ループエラー防止のためのダミー

x = [0]

a = 0

for i in range(0,n):

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

        a += 1

        if a > x[0]:

            x[0] = a

    else: # h[i] > h[i-1]:

        a = 0

print((*x))

n = int(eval(input()))

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



ans = 0

tmp = 0

for i in range(1, n):

    if l[i] <= l[i-1]:

        tmp += 1

        if i == n-1:

            ans = max(ans, tmp)

    else:

        ans = max(ans, tmp)

        tmp = 0



print(ans)

# ロジックは簡単だったが実装に手間取った.
n = int(eval(input()))
h = [int(_) for _ in input().split()]
h.append(0)  # ループエラー防止のためのダミー
x = [0]
a = 0
for i in range(0, n):
    if h[i] <= h[i - 1]:
        a += 1
        if a > x[0]:
            x[0] = a
    else:  # h[i] > h[i-1]:
        a = 0
print((*x))

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

-# ロジックは簡単だったが実装に手間取った. -h = [int(_) for _ in input().split()] -h.append(0)  # ループエラー防止のためのダミー -x = [0] -a = 0 -for i in range(0, n): -    if h[i] <= h[i - 1]: -        a += 1 -        if a > x[0]: -            x[0] = a -    else:  # h[i] > h[i-1]: -        a = 0 -print((*x)) +l = list(map(int, input().split())) +ans = 0 +tmp = 0 +for i in range(1, n): +    if l[i] <= l[i - 1]: +        tmp += 1 +        if i == n - 1: +            ans = max(ans, tmp) +    else: +        ans = max(ans, tmp) +        tmp = 0 +print(ans)