#include<stdio.h>
int main(){
	int n,k[100]={ 0 };
	int a,b,c;
	int i,j;
	
	scanf("%d",&n);
	for(i=0;i<n;){
		scanf("%d %d %d",&a,&b,&c);
		if(a*a==b*b+c*c || b*b==a*a+c*c || c*c==b*b+a*a){k[i]=1;}
		else{}
		i++;
	}
	for(i=0;i<n;i++){
		switch(k[i]){
			case 1:
				printf("YES\n");
				break;
			case 0:
				printf("NO\n");
				break;
			default:
				break;
		}
	}
	return 0;
}