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