#include <cmath>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <bitset>
#include <functional>
#include <numeric>
#include <utility>
#include <iomanip>
#include <cstdio>
#include <cctype>
#include <queue>
#include <complex>
#include <climits>

typedef long long ll;

using namespace std;

int main(void){
	int n;
	cin >> n;
	for(int j=0; j<n; ++j){
		int len[3];
		for(int i=0; i<3; ++i){
			cin >> len[i];
		}

		sort(len, len+3);

		if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){
			cout << "YES"<< endl;
		} else {
			cout << "NO" << endl;
		}
	}



	return 0;
}