#42008: python AC 解


deansuo1825@gmail.com (黃昱碩)


n=int(input())
h=list(map(int,input().split()))
total=1
t=[]
for i in range(0,n-1):
  if h[i]>h[i+1]:
    total+=1
    t.append(total)
  else:
    total=1
print(max(t))