#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
 
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 ary[3] = {0};
        ary[0] = a * a;
        ary[1] = b * b;
        ary[2] = c * c;
        sort(ary, ary + 3);
        ary[2] - (ary[0] + ary[1]) || cout << "YES" << endl;
        ary[2] - (ary[0] + ary[1]) && cout << "NO" << endl;
    }
    return 0;
}