static int[] TKT(int[][] a, String[] s){//Three-of-a-Kind Triads
	int[] c=new int[1490];
	int n=a.length;
	for(int i=0;i<1490;i++)
	{	int [] b=new int[470];//For polbooks max degree<30
		int k=0; for(int j=0;j<1490 ;j++){if(a[i][j]==1){b[k++]=j;}}//k=degree of i
		int p=0;
		for(int j=0;j<k;j++){for(int m=j+1;m<k;m++){
			if(a[b[j]][b[m]]==1){if(s[i].equals(s[b[j]])&&s[i].equals(s[b[m]])){p++;
			}}}}
		c[i]=p;
	}
	return c;
}