n=int(eval(input()))

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

r=[None]*(n-1)

for i in range(n-1):

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

    r[i]=True

  else:

    r[i]=False



m=0

count=0

for i in range(len(r)):

  if r[i]:

    count=count+1

    m=max(m,count)

  else:

    count=0



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

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

cur=H[0]

streak=0

ans=0

for i in range(1,N):

  if H[i]<=cur:

    streak+=1

    if ans<streak:

      ans=streak

  else:

    streak=0

  cur=H[i]



print(ans)
n = int(eval(input()))
h = list(map(int, input().split()))
r = [None] * (n - 1)
for i in range(n - 1):
    if h[i] >= h[i + 1]:
        r[i] = True
    else:
        r[i] = False
m = 0
count = 0
for i in range(len(r)):
    if r[i]:
        count = count + 1
        m = max(m, count)
    else:
        count = 0
print(m)

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

-n = int(eval(input())) -h = list(map(int, input().split())) -r = [None] * (n - 1) -for i in range(n - 1): -    if h[i] >= h[i + 1]: -        r[i] = True +N = int(eval(input())) +H = list(map(int, input().split())) +cur = H[0] +streak = 0 +ans = 0 +for i in range(1, N): +    if H[i] <= cur: +        streak += 1 +        if ans < streak: +            ans = streak -        r[i] = False -m = 0 -count = 0 -for i in range(len(r)): -    if r[i]: -        count = count + 1 -        m = max(m, count) -    else: -        count = 0 -print(m) +        streak = 0 +    cur = H[i] +print(ans)