#include<iostream>
#include<fstream>
using namespace std;



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