N = int(eval(input()))

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

q = 0

s = [0]

for i in range(N-1):

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

    p = q + 1

    s.append(p)

    q = q + 1

  else:

    s.append(0)

    q = 0



s.sort()

ans = s[-1]

print(ans)
N = int(eval(input()))

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

old = H[0]

ans = 0

a = 0

for i in range(1,N):

  if H[i] <= old:

    a += 1

  else:

    if a > ans:

      ans = a

    a = 0

  old = H[i]

if a > ans:

  ans = a

print(ans)

    
N = int(eval(input()))
H = list(map(int, input().split()))
q = 0
s = [0]
for i in range(N - 1):
    if H[i] >= H[i + 1]:
        p = q + 1
        s.append(p)
        q = q + 1
    else:
        s.append(0)
        q = 0
s.sort()
ans = s[-1]
print(ans)

N = int(eval(input()))
H = list(map(int, input().split()))
old = H[0]
ans = 0
a = 0
for i in range(1, N):
    if H[i] <= old:
        a += 1
    else:
        if a > ans:
            ans = a
        a = 0
    old = H[i]
if a > ans:
    ans = a
print(ans)

-q = 0 -s = [0] -for i in range(N - 1): -    if H[i] >= H[i + 1]: -        p = q + 1 -        s.append(p) -        q = q + 1 +old = H[0] +ans = 0 +a = 0 +for i in range(1, N): +    if H[i] <= old: +        a += 1 -        s.append(0) -        q = 0 -s.sort() -ans = s[-1] +        if a > ans: +            ans = a +        a = 0 +    old = H[i] +if a > ans: +    ans = a