ll@N,@A[N],c=0;wt(sum[i,0,N-1@A[i]>A[i+1]](i-c++));