#include "bits/stdc++.h"
using namespace std;

int main()
{
    vector<int> a(3);
    cin >> a[0];
    while (cin >> a[0] >> a[1] >> a[2])
    {
        sort(a.begin(), a.end());
        if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2])
        {
            printf("YES\n");
        }
        else
        {
            printf("NO\n");
        }
    }
}
