#include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b,c,q;
	cin >> q;
	auto f=[&]{
		cin >> a >> b >> c;
		int x = max({a,b,c});
		int y = min({a,b,c});
		int z = a+b+c-x-y;
		if((x*x)==(y*y+z*z)){
			cout << "YES" << endl;
		}else{
			cout << "NO" << endl;
		}
	};
	while(q--){
		f();
	}
}
