     #include <iostream>
    #include <math.h>
    using namespace std;
     
    int main() {
    int a,b,c,d;
    cin >> a;
    for(int i=0 ; i<a ; i++){
    cin >>b>>c>>d;
    if(b*b + c*c == d*d || c*c+d*d==b*b || b*b+d*d==c*c){
    cout << "YES"<<endl;
    }
    else{
    cout << "NO"<<endl;
    }
    }
    return 0;
    }