#include <stdio.h>
#include <stdlib.h>

int compare_int(const void *a, const void *b)
{
    return *(int*)a - *(int*)b;
}

int check(int a[3])
{
    qsort(a, 3, sizeof(int), compare_int);
    return a[0] * a[0] + a[1] * a[1] - a[2] * a[2];
}

int main(void)
{
    int t;
    scanf("%d", &t);
    for (int i = 0; i < t; i++) {
        int sides[3];
        for (int j = 0; j < 3; j++) {
            scanf("%d", &sides[j]);
        }
        if (check(sides) == 0) {
            printf("YES\n");
        } else {
            printf("NO\n");
        }
    }
    return 0;
}