//interactive ll@N,p[N]{1},L=1,w;while(p[L-1]