n = int(eval(input()))

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

a = []

ans = []

b = set(h)

if n == 0:

  print((0))

elif len(b) == 1:

  print((len(h)-1))

else:





  for i in range(n-1):

    if h[i] < h[i+1]:

      a.append(i+1)



  

  if a == []:

    print((len(h)-1))

  else:

    ans.append(a[0])

    ans[0] -= 1

    for i in range(len(a)-1):

      ans.append((a[i+1] - a[i])-1)

    ans.append((len(h) - a[len(a)-1])-1)

    if ans == []:

      print((0))

    else:

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

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

h.reverse()

ans = 0

val = 0

for i in range(1,n):

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

    val += 1

  else:

    val = 0

  ans = max(ans, val)

print(ans)
n = int(eval(input()))
h = list(map(int, input().split()))
a = []
ans = []
b = set(h)
if n == 0:
    print((0))
elif len(b) == 1:
    print((len(h) - 1))
else:
    for i in range(n - 1):
        if h[i] < h[i + 1]:
            a.append(i + 1)
    if a == []:
        print((len(h) - 1))
    else:
        ans.append(a[0])
        ans[0] -= 1
        for i in range(len(a) - 1):
            ans.append((a[i + 1] - a[i]) - 1)
        ans.append((len(h) - a[len(a) - 1]) - 1)
        if ans == []:
            print((0))
        else:
            print((max(ans)))

n = int(eval(input()))
h = list(map(int, input().split()))
h.reverse()
ans = 0
val = 0
for i in range(1, n):
    if h[i - 1] <= h[i]:
        val += 1
    else:
        val = 0
    ans = max(ans, val)
print(ans)

-a = [] -ans = [] -b = set(h) -if n == 0: -    print((0)) -elif len(b) == 1: -    print((len(h) - 1)) -else: -    for i in range(n - 1): -        if h[i] < h[i + 1]: -            a.append(i + 1) -    if a == []: -        print((len(h) - 1)) +h.reverse() +ans = 0 +val = 0 +for i in range(1, n): +    if h[i - 1] <= h[i]: +        val += 1 -        ans.append(a[0]) -        ans[0] -= 1 -        for i in range(len(a) - 1): -            ans.append((a[i + 1] - a[i]) - 1) -        ans.append((len(h) - a[len(a) - 1]) - 1) -        if ans == []: -            print((0)) -        else: -            print((max(ans))) +        val = 0 +    ans = max(ans, val) +print(ans)