N = int(eval(input()))

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

n = 0

a = 0



for i in range(N-1):

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

    n+=1

  else:

    a=max(a,n)

    n=0



print((max(a,n)))
N = int(eval(input()))

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

ans = [0]



for h1,h2 in zip(H,H[1:]):

  if h2<=h1:

    ans+=[ans[-1]+1]

  else:

    ans+=[0]



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

N = int(eval(input()))
H = list(map(int, input().split()))
ans = [0]
for h1, h2 in zip(H, H[1:]):
    if h2 <= h1:
        ans += [ans[-1] + 1]
    else:
        ans += [0]
print((max(ans)))

-n = 0 -a = 0 -for i in range(N - 1): -    if H[i + 1] <= H[i]: -        n += 1 +ans = [0] +for h1, h2 in zip(H, H[1:]): +    if h2 <= h1: +        ans += [ans[-1] + 1] -        a = max(a, n) -        n = 0 -print((max(a, n))) +        ans += [0] +print((max(ans)))