import java.util.*;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    }
} import java.util.*; util.* java public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    }
} Main public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    } main {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    } final Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int set = scanner.nextInt(); set scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        } int i = 0; int i = 0; i 0 i < set i set i++ i++ i {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        } {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        } final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt()); integers Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt()) Arrays.asList Arrays scanner.nextInt() scanner.nextInt scanner scanner.nextInt() scanner.nextInt scanner scanner.nextInt() scanner.nextInt scanner Collections.sort(integers) Collections.sort Collections integers final double a = Math.pow(integers.get(0), 2); a Math.pow(integers.get(0), 2) Math.pow Math integers.get(0) integers.get integers 0 2 final double b = Math.pow(integers.get(1), 2); b Math.pow(integers.get(1), 2) Math.pow Math integers.get(1) integers.get integers 1 2 final double c = Math.pow(integers.get(2), 2); c Math.pow(integers.get(2), 2) Math.pow Math integers.get(2) integers.get integers 2 2 System.out.println(c == a + b ? "YES" : "NO") System.out.println System.out System System.out c == a + b ? "YES" : "NO" c == a + b c a + b a b "YES" "NO" String... args args public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    }
} public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    }
} Main
import java.util.*;

public class Main
{
    public static void main(String... args)
    {
        final Scanner scanner = new Scanner(System.in);
        final int set = scanner.nextInt();
        for (int i = 0; i < set; i++) {
            final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
            Collections.sort(integers);
            final double a = Math.pow(integers.get(0), 2);
            final double b = Math.pow(integers.get(1), 2);
            final double c = Math.pow(integers.get(2), 2);
            System.out.println(c == a + b ? "YES" : "NO");
        }
    }
}