n=int(eval(input()))

h=list(map(int,input().split()))+[10**9+1]

ans=0

cnt=0

for i in range(1,n+1):

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

        cnt+=1

    else:

        ans=max(ans,cnt)

        cnt=0

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

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

ans=0

t_ans=0

b_h=h[0]

for i in h[1:]:

  if b_h>=i:

    t_ans+=1

  else:

    ans=max(ans,t_ans)

    t_ans=0

  b_h=i

ans=max(ans,t_ans)

print(ans)
n = int(eval(input()))
h = list(map(int, input().split())) + [10**9 + 1]
ans = 0
cnt = 0
for i in range(1, n + 1):
    if h[i - 1] >= h[i]:
        cnt += 1
    else:
        ans = max(ans, cnt)
        cnt = 0
print(ans)

n = int(eval(input()))
h = list(map(int, input().split()))
ans = 0
t_ans = 0
b_h = h[0]
for i in h[1:]:
    if b_h >= i:
        t_ans += 1
    else:
        ans = max(ans, t_ans)
        t_ans = 0
    b_h = i
ans = max(ans, t_ans)
print(ans)

-h = list(map(int, input().split())) + [10**9 + 1] +h = list(map(int, input().split())) -cnt = 0 -for i in range(1, n + 1): -    if h[i - 1] >= h[i]: -        cnt += 1 +t_ans = 0 +b_h = h[0] +for i in h[1:]: +    if b_h >= i: +        t_ans += 1 -        ans = max(ans, cnt) -        cnt = 0 +        ans = max(ans, t_ans) +        t_ans = 0 +    b_h = i +ans = max(ans, t_ans)