r[1<<24];main(){ int m[24][24],n,i,j,k,s,t,u; scanf("%d",&n); for(i=0;i