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