#include <iostream>

using namespace std;

int main() {

	int dataNum;

	cin >> dataNum;

	for (int i = 0; i < dataNum; i ++) {
		
		int hen[3];

		cin >> hen[0] >> hen[1] >> hen[2];

		//????????????????????§?????????
		for (int j = dataNum - 1; j > 0; j--) {
			for (int k = 0; k < j; k++) {
				if (hen[k] > hen[k + 1]) {
					int dummy = hen[k];
					hen[k] = hen[k + 1];
					hen[k + 1] = dummy;
				}
			}
		}

		//??´?§?????????§??????
		if (hen[0] * hen[0] + hen[1] * hen[1] == hen[2] * hen[2]) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
	}

	return 0;
}