#include<stdio.h>
#include<math.h>
int main(void){

	int n,i;
	double x[1000], y[1000], z[1000], a[1000],ya[1000],xa[1000],aa[1000];

	a[0] = 3;
	
	double tmp;

	scanf("%d\n",&n);


	for(i = 0;i <= n;i ++){

		scanf("%lf %lf %lf\n",&x[i],&y[i],&z[i]);

		
		if(x[i] < y[i]){

			tmp = y[i];
			y[i] = x[i];
			x[i] = tmp;
			

		}
		if(y[i] < z[i]){

			tmp = z[i];
			z[i] = y[i];
			y[i] = tmp;
			

		}
		if(x[i] < z[i]){

			tmp = z[i];
			z[i] = x[i];
			x[i] = tmp;
			

		}

		xa[i] = x[i] / sqrt(a[0]);
		ya[i] = y[i] /2;

		if (xa[i] == ya[i] && xa[i] == z[i] && ya[i] == z[i]) aa[i] = 1;
		else aa[i] = 0;	
		





	}

	i = 0;

	for(i = 0;i <= n;i ++){

		if(aa[i] == 1)printf("YES\n");
		if(aa[i] == 0)printf("NO\n");


	}



	return 0;





}