#include<iostream>
using namespace std;

int main(){
  int a,b,c,d,e,f,N,i;
  cin >> N;
  for(i=0;i<N;i++){
    cin >> a >> b>>c;
    d=a*a;
    e=b*b;
    f=c*c;
    if(d==e+f||e==d+f||f==d+e){
      cout<<"YES"<<endl;
    }else{
      cout<<"NO"<<endl;
    }
  }
  return 0;
}