#include <stdio.h>

int main() {
    
    int l, m, n, i, j;
    
    int big, a, b;
    
    scanf("%d", &i);
    for (j = 0; j < i; j++) {
        
        scanf("%d %d %d", &l, &m, &n);
        
        big = l;
        if (big < m) { a = big; big = m; } else { a = m; }
        if (big < n) { b = big; big = n; }  else { b = n; }
        
        
        if (big * big == a * a + b * b) {
            printf("YES\n");
        } else {
            printf("NO\n");
        }
        
    }
    return 0;
}