#include<iostream>
#include<vector>
#include<cstdio>
#include<string>
#include<algorithm>
#include<numeric>
#include<vector>
#include<iostream>
#include<map>
#include<math.h>

using namespace::std;

int main(void)
{

  int n;
  cin >> n;

  while( n-- )
    {
      vector<double> edge(3);
      
      for(int i = 0; i < 3; i++)
	{
	  cin >> edge[i];
	}

      sort( edge.begin() , edge.end() );

      string ans = "YES";

      if( !( pow( edge[0] , 2 ) + pow( edge[1] , 2 ) == pow( edge[2] , 2 ) ) )
	{
	  ans = "NO";
	}

      cout << ans << endl;

    }

  return 0;

}