import sys

import math



N = sys.stdin.readline()

H = list(map(int, sys.stdin.readline().split(' ')))



t = list(map(lambda x, y: 1 if x >= y else 0, H[:-1], H[1:]))

m = 0

s = 0

for x in t:

    if x:

        s += 1

        m = max(s, m)

    else:

        s = 0



print(m)

import sys

import math



N = sys.stdin.readline()

H = list(map(int, sys.stdin.readline().split(' ')))



m = 0

s = 0

for x, y in zip(H[:-1], H[1:]):

    if x >= y:

        s += 1

        m = max(s, m)

    else:

        s = 0



print(m)
import sys
import math

N = sys.stdin.readline()
H = list(map(int, sys.stdin.readline().split(" ")))
t = list(map(lambda x, y: 1 if x >= y else 0, H[:-1], H[1:]))
m = 0
s = 0
for x in t:
    if x:
        s += 1
        m = max(s, m)
    else:
        s = 0
print(m)

import sys
import math

N = sys.stdin.readline()
H = list(map(int, sys.stdin.readline().split(" ")))
m = 0
s = 0
for x, y in zip(H[:-1], H[1:]):
    if x >= y:
        s += 1
        m = max(s, m)
    else:
        s = 0
print(m)

-t = list(map(lambda x, y: 1 if x >= y else 0, H[:-1], H[1:])) -for x in t: -    if x: +for x, y in zip(H[:-1], H[1:]): +    if x >= y: