ll@t; rep(t){ ll@n,@k--; ll d=n*72; ll a=1+k/d; k%=d; ll e=n*8; ll b=k/e; k%=e; ll c,l; if(k=a; c+=c>=a; wt(l+2,a,b,c); }