import java.util.*;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    }
} Main public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    } main {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] a =new int[3]; a new int[3] 3 int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        } int j=0; int j=0; j 0 j<b j b j++ j++ j {
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        } {
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        } for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
                a[i]= scan.nextInt();
            } {
                a[i]= scan.nextInt();
            } a[i]= scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan Arrays.sort(a) Arrays.sort Arrays a if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO"); (Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2)) (Math.pow(a[0],2)+ Math.pow(a[1],2)) Math.pow(a[0],2) Math.pow Math a[0] a 0 2 Math.pow(a[1],2) Math.pow Math a[1] a 1 2 (Math.pow(a[2],2)) Math.pow Math a[2] a 2 2 {
                System.out.println("YES");
            } System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    }
} public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {

    Scanner scan = new Scanner(System.in);
    
    int[] a =new int[3];
    int b = scan.nextInt();
        for (int j=0; j<b;j++){
            for (int i=0; i<3; i++){
                a[i]= scan.nextInt();
            }
            Arrays.sort(a);
            if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
                System.out.println("YES");
            }
            else System.out.println("NO");
        }
    }
}