#include <iostream>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;

int main() {
    int n;
    int a, b, c;

    cin >> n;
    for (int i=0; i<n; i++) {
        cin >> a >> b >> c;
        int d[3] = {a, b, c};
        sort(d, d+3);
        if (d[2] == sqrt(pow(d[0], 2) + pow(d[1], 2))) {
            cout << "YES" << endl;
        } else {
            cout << "NO" << endl;
        }
    }

    return 0;
}
