#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

int main() {
  int Tc;
  cin>> Tc;
  for(int tc = 0; tc < Tc; ++tc) {
    vector<int> v(3);
    for(int i = 0; i < 3; ++i) cin >> v[i];
    sort(v.begin(), v.end());
    if(v[0]*v[0]+v[1]*v[1] == v[2]*v[2]) cout << "YES" << endl;
    else cout << "NO" << endl;
  }
  return 0;
}