N = int(eval(input()))

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

dp = [- 1]*N

dp[-1] = 0

res = 0

for i in range(N - 2, - 1, - 1):

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

        dp[i] = dp[i + 1] + 1

        res = max(res, dp[i])

    else:

        dp[i] = 0

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

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

dp = [- 1]*N

dp[-1] = 0

for i in range(N - 2, - 1, - 1):

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

        dp[i] = dp[i + 1] + 1

    else:

        dp[i] = 0

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

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

-res = 0 -        res = max(res, dp[i]) -print(res) +print((max(dp)))