import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

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

        int noDataSet = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int noDataSet = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);

        int noDataSet = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int noDataSet = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int noDataSet = sc.nextInt(); noDataSet sc.nextInt() sc.nextInt sc for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < noDataSet i noDataSet i++ i++ i {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } ArrayList<Integer> nums = new ArrayList<Integer>(); nums new ArrayList<Integer>() nums.add(sc.nextInt()) nums.add nums sc.nextInt() sc.nextInt sc nums.add(sc.nextInt()) nums.add nums sc.nextInt() sc.nextInt sc nums.add(sc.nextInt()) nums.add nums sc.nextInt() sc.nextInt sc Collections.sort(nums) Collections.sort Collections nums int a = nums.get(0); a nums.get(0) nums.get nums 0 int b = nums.get(1); b nums.get(1) nums.get nums 1 int c = nums.get(2); c nums.get(2) nums.get nums 2 if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) Math.pow(a, 2) + Math.pow(b, 2) Math.pow(a, 2) Math.pow Math a 2 Math.pow(b, 2) Math.pow Math b 2 Math.pow(c, 2) Math.pow Math c 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("NO") System.out.println System.out System System.out "NO" String args[] args
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

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

        int noDataSet = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
}