#include <iostream>
#include <algorithm>
using namespace std;

int main(void) {
    int length[3];
    int n;
    int A, B, C;
    
    cin >> n;
    
    for(int i = 0; i < n; ++i) {
        cin >> length[0] >> length[1] >> length[2];
        sort(length, length + 3);
        A = length[0];
        B = length[1];
        C = length[2];
        if(A*A + B*B == C*C) {
            cout << "Yes" << endl;
        } else {
            cout << "No" << endl;
        }
    }
}
