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