import java.util.Scanner;

class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

      

        int times = scan.nextInt();

        int[][] delta = new int[times][3];

        for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        }

        for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }

        scan.close();

    }

} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

      

        int times = scan.nextInt();

        int[][] delta = new int[times][3];

        for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        }

        for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }

        scan.close();

    }

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

        Scanner scan = new Scanner(System.in);

      

        int times = scan.nextInt();

        int[][] delta = new int[times][3];

        for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        }

        for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }

        scan.close();

    } main {

        Scanner scan = new Scanner(System.in);

      

        int times = scan.nextInt();

        int[][] delta = new int[times][3];

        for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        }

        for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }

        scan.close();

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int times = scan.nextInt(); times scan.nextInt() scan.nextInt scan int[][] delta = new int[times][3]; delta new int[times][3] times 3 for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        } int i = 0; int i = 0; i 0 i < times i times i++ i++ i {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        } {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        } int edge1 = scan.nextInt(); edge1 scan.nextInt() scan.nextInt scan int edge2 = scan.nextInt(); edge2 scan.nextInt() scan.nextInt scan int edge3 = scan.nextInt(); edge3 scan.nextInt() scan.nextInt scan delta[i][0] = edge1 delta[i][0] delta[i] delta i 0 edge1 delta[i][1] = edge2 delta[i][1] delta[i] delta i 1 edge2 delta[i][2] = edge3 delta[i][2] delta[i] delta i 2 edge3 for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < times i times i++ i++ i {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            } (delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1]) (delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1]) (delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2]) (delta[i][0]) * (delta[i][0]) (delta[i][0]) delta[i] delta i 0 (delta[i][0]) delta[i] delta i 0 (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2]) (delta[i][1]) * (delta[i][1]) (delta[i][1]) delta[i] delta i 1 (delta[i][1]) delta[i] delta i 1 (delta[i][2]) * (delta[i][2]) (delta[i][2]) delta[i] delta i 2 (delta[i][2]) delta[i] delta i 2 (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2]) (delta[i][1]) * (delta[i][1]) (delta[i][1]) delta[i] delta i 1 (delta[i][1]) delta[i] delta i 1 (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2]) (delta[i][0]) * (delta[i][0]) (delta[i][0]) delta[i] delta i 0 (delta[i][0]) delta[i] delta i 0 (delta[i][2]) * (delta[i][2]) (delta[i][2]) delta[i] delta i 2 (delta[i][2]) delta[i] delta i 2 (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1]) (delta[i][2]) * (delta[i][2]) (delta[i][2]) delta[i] delta i 2 (delta[i][2]) delta[i] delta i 2 (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1]) (delta[i][0]) * (delta[i][0]) (delta[i][0]) delta[i] delta i 0 (delta[i][0]) delta[i] delta i 0 (delta[i][1]) * (delta[i][1]) (delta[i][1]) delta[i] delta i 1 (delta[i][1]) delta[i] delta i 1 {

                System.out.println("YES");
            } System.out.println("YES") System.out.println System.out System System.out "YES" {
                System.out.println("NO");
            } System.out.println("NO") System.out.println System.out System System.out "NO" scan.close() scan.close scan String[] args args
import java.util.Scanner;

class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

      

        int times = scan.nextInt();

        int[][] delta = new int[times][3];

        for (int i = 0; i < times; i++) {

            int edge1 = scan.nextInt();
            int edge2 = scan.nextInt();
            int edge3 = scan.nextInt();

            delta[i][0] = edge1;
            delta[i][1] = edge2;
            delta[i][2] = edge3;

        }

        for (int i = 0; i < times; i++) {
            if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
                    || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {

                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }

        scan.close();

    }

}