#include <iostream>
#include <algorithm>

using namespace std;

int main(){
  int n; cin >> n;
  while(n--){
    int e[3];
    cin >> e[0] >> e[1] >> e[2];
    sort(e,e+3);
    if(e[2]*e[2] == e[0]*e[0] + e[1]*e[1])
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}