N=int(eval(input()))

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

s=0

t=0

pre=H[0]

for h in H[1:]:

  if h <= pre:

    t+=1

  else:

    s=max(s,t)

    t=0

  pre = h

print((max(s,t)))
N = int(eval(input()))

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

ans = 0

s = 0

for i in range(N-1):

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

    s+=1

  else:

    ans = max(ans, s)

    s = 0

ans = max(ans, s)

  

print(ans)
N = int(eval(input()))
H = list(map(int, input().split()))
s = 0
t = 0
pre = H[0]
for h in H[1:]:
    if h <= pre:
        t += 1
    else:
        s = max(s, t)
        t = 0
    pre = h
print((max(s, t)))

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

+ans = 0 -t = 0 -pre = H[0] -for h in H[1:]: -    if h <= pre: -        t += 1 +for i in range(N - 1): +    if H[i] >= H[i + 1]: +        s += 1 -        s = max(s, t) -        t = 0 -    pre = h -print((max(s, t))) +        ans = max(ans, s) +        s = 0 +ans = max(ans, s) +print(ans)