import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

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

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

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

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    } main {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } String[] array = sc.nextLine().split("[\\s]"); array sc.nextLine().split("[\\s]") sc.nextLine().split sc.nextLine() sc.nextLine sc "[\\s]" int n1 = Integer.parseInt(array[0]); n1 Integer.parseInt(array[0]) Integer.parseInt Integer array[0] array 0 int n2 = Integer.parseInt(array[1]); n2 Integer.parseInt(array[1]) Integer.parseInt Integer array[1] array 1 int n3 = Integer.parseInt(array[2]); n3 Integer.parseInt(array[2]) Integer.parseInt Integer array[2] array 2 int swap = n3; swap n3 if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            } n1 < n2 && n3 < n2 n1 < n2 n1 n2 n3 < n2 n3 n2 {
                n3 = n2;
                n2 = swap;
            } n3 = n2 n3 n2 n2 = swap n2 swap if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            } n2 < n1 && n3 < n1 n2 < n1 n2 n1 n3 < n1 n3 n1 {
                n3 = n1;
                n1 = swap;
            } n3 = n1 n3 n1 n1 = swap n1 swap if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } (n1 * n1) + (n2 * n2) == (n3 * n3) (n1 * n1) + (n2 * n2) (n1 * n1) n1 n1 (n2 * n2) n2 n2 (n3 * n3) n3 n3 {
                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" sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            int swap = n3;
            if (n1 < n2 && n3 < n2) {
                n3 = n2;
                n2 = swap;
            } else if (n2 < n1 && n3 < n1) {
                n3 = n1;
                n1 = swap;
            }

            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

}