#include <cstdio>
#include <iostream>
#include <cstring>

using namespace std;

int main()
{
    int a,b,c,d,e,n;
   cin >> n;
   while(n--)
   {
             cin >> a >> b >> c;
             if(c > b && c > a )
             {
               d= (a*a) + (b * b);
               e = (c*c);
             }
             else if( b > c && b > a )
             {
                  d = (a * a) + (c *c);
                  e = (b*b);
                  
             }
             else if(a > c && a > b)
             {
                  d = (b* b) + (c*c);
                  e = (a*a);
             }
             else{
                   d= (a*a) + (b * b);
               e = (c*c);
                  
                  }
             
             if( d == e)
             {
                 cout << "YES\n" ;
                 
             }
             else 
             {
                  cout << "NO\n";
             }
   }
    return 0;
}