#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    int n;cin>>n;
    for(int i=0;i<n;i++)
    {
        vector<int> c(3);cin>>c[0]>>c[1]>>c[2];
        sort(c.begin(),c.end());
        //cout << c[0]<<":" << c[1] <<":"<< c[2]<<":";
        if (c[2]*c[2]==c[1]*c[1]+c[0]*c[0]) cout<<"YES\n";
        else cout<<"NO\n";
    }
}