#include<iostream>
#include<cmath>

using namespace std;

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

    cin>>n;

    for(int i = 0;i<n;i++){
        cin>>a>>b>>c;
        if(a==b && b==c){
            cout<<"YES";
        }
        else if((a==b && b!=c) || (a==c && b!=c) || (b==c && a!=b)){
            cout<<"YES";
        }
        else if((a*a+b*b)==c*c){
            cout<<"YES";
        }
        else if((c*c+b*b)==a*a){
            cout<<"YES";
        }
        else if((a*a+c*c)==b*b){
            cout<<"YES";
        }
        else{
            cout<<"NO";
        }
        cout<<endl;
    }

    return 0;
}

