N = eval(input())

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

last_h = float('inf')

ans, cnt = 0, -1

for h in H:

  if last_h >= h:

    cnt += 1

  else:

    ans = max(ans, cnt)

    cnt = 0

  last_h = h

print((max(ans, cnt)))
N = eval(input())

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

last_h = float('inf')

ans, cnt = 0, -1

for h in H:

  if last_h >= h:

    cnt += 1

  else:

    if ans < cnt:

      ans = cnt

    cnt = 0

  last_h = h

print((ans if ans > cnt else cnt))
N = eval(input())
H = list(map(int, input().split()))
last_h = float("inf")
ans, cnt = 0, -1
for h in H:
    if last_h >= h:
        cnt += 1
    else:
        ans = max(ans, cnt)
        cnt = 0
    last_h = h
print((max(ans, cnt)))

N = eval(input())
H = list(map(int, input().split()))
last_h = float("inf")
ans, cnt = 0, -1
for h in H:
    if last_h >= h:
        cnt += 1
    else:
        if ans < cnt:
            ans = cnt
        cnt = 0
    last_h = h
print((ans if ans > cnt else cnt))

-        ans = max(ans, cnt) +        if ans < cnt: +            ans = cnt -print((max(ans, cnt))) +print((ans if ans > cnt else cnt))