#include <stdio.h>

int main(){
	int timel,timei,a,b,c;
	scanf("%d",&timel);
	for(timei=0;timei<timel;timei++){
		scanf("%d %d %d",&a,&b,&c);
		a = a^2;
		b = b^2;
		c = c^2;
		if(a+b==c || b+c==a || c+a==b){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}
	return 0;
}