#include<iostream>
#include<vector>
#include<algorithm>
int main(){
  using namespace std;
  int N;
  cin >> N;
  for(int i = 0; i < N; i++){
    int a,b,c;
    cin >> a >> b >> c;
    int l,m,s;
    s = min(a,min(b,c));
    m = max(max(min(a,b),min(b,c)),min(c,a));
    l = max(a,max(b,c));
    if(l*l == m*m + s*s){
      cout << "YES" << endl;
    }else{
      cout << "NO" << endl;
    }
  }
}