import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = Integer.parseInt(sc.nextLine()); count Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int a = 0; a 0 int b = 0; b 0 int c = 0; c 0 String[] req; req for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } sc.hasNext() sc.hasNext sc String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc req = s.split(" ") req s.split(" ") s.split s " " a = Integer.parseInt(req[0]) a Integer.parseInt(req[0]) Integer.parseInt Integer req[0] req 0 b = Integer.parseInt(req[1]) b Integer.parseInt(req[1]) Integer.parseInt Integer req[1] req 1 c = Integer.parseInt(req[2]) c Integer.parseInt(req[2]) Integer.parseInt Integer req[2] req 2 if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b a * a + b * b == c * c a * a + b * b a * a a a b * b b b c * c c c b * b + c * c == a * a b * b + c * c b * b b b c * c c c a * a a a c * c + a * a == b * b c * c + a * a c * c c c a * a a a b * b b b {
                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 public class Main {
    public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} public class Main {
    public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws IOException {
        Scanner sc = new Scanner(System.in);
        int count = Integer.parseInt(sc.nextLine());
        int a = 0;
        int b = 0;
        int c = 0;

        String[] req;
        for (int i = 0; i < count; i++) {
            sc.hasNext();
            String s = sc.nextLine();
            req = s.split(" ");
            a = Integer.parseInt(req[0]);
            b = Integer.parseInt(req[1]);
            c = Integer.parseInt(req[2]);

            if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
}