N=int (input()) A=[int(i) for i in input(). split ()] C=0 i=0 while iA[i+2]: C+=1 elif A[i]>A[i+1] and A[i+1]