N = int(eval(input()))

H = [int(h) for h in input().split()]

H.append(1e10)

dH = [H[i + 1] - H[i] for i in range(N)]

m, c = 0, 0

for i in range(N):

    d = H[i + 1] - H[i]

    if d <= 0:

        c += 1

    else:

        if c > m:

            m = c

        c = 0

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

H = [int(h) for h in input().split()]

H.append(1e10)

m, c = 0, 0

for i in range(N):

  d = H[i + 1] - H[i]

  if d <= 0:

    c += 1

  else:

    if c > m:

      m = c

    c = 0

print(m)
N = int(eval(input()))
H = [int(h) for h in input().split()]
H.append(1e10)
dH = [H[i + 1] - H[i] for i in range(N)]
m, c = 0, 0
for i in range(N):
    d = H[i + 1] - H[i]
    if d <= 0:
        c += 1
    else:
        if c > m:
            m = c
        c = 0
print(m)

N = int(eval(input()))
H = [int(h) for h in input().split()]
H.append(1e10)
m, c = 0, 0
for i in range(N):
    d = H[i + 1] - H[i]
    if d <= 0:
        c += 1
    else:
        if c > m:
            m = c
        c = 0
print(m)

-dH = [H[i + 1] - H[i] for i in range(N)]