import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int ary[] = new int[3]; ary new int[3] 3 int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        } n-- > 0 n-- n 0 {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        } for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < ary.length i ary.length ary ary.length i++ i++ i ary[i] = sc.nextInt(); ary[i] = sc.nextInt() ary[i] ary i sc.nextInt() sc.nextInt sc Arrays.sort(ary) Arrays.sort Arrays ary int a = ary[0]; a ary[0] ary 0 int b = ary[1]; b ary[1] ary 1 int c = ary[2]; c ary[2] ary 2 System.out.println((a*a + b*b == c*c) ? "YES" : "NO") System.out.println System.out System System.out (a*a + b*b == c*c) ? "YES" : "NO" (a*a + b*b == c*c) a*a + b*b a*a a a b*b b b c*c c c "YES" "NO" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int ary[] = new int[3];

        int n = sc.nextInt();
        while (n-- > 0) {
            for (int i = 0; i < ary.length; i++)
                ary[i] = sc.nextInt();

            Arrays.sort(ary);

            int a = ary[0];
            int b = ary[1];
            int c = ary[2];

            System.out.println((a*a + b*b == c*c) ? "YES" : "NO");
        }
    }
}