//interactive ll@T,@N,@M;vectorA(N+1,1);rep(t,T){wt(A);ll@K,@S[N],@P[N],@R[N];}