
import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    }
} Main public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    } main {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int lines = Integer.parseInt(in.readLine()); lines Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } int i = 0; int i = 0; i 0 i < lines i lines i++ i++ i {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        } String s = in.readLine(); s in.readLine() in.readLine in if (s == null) {
                break;
            } s == null s null {
                break;
            } break; f(s) f s String[] argv argv public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    } f {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    } String[] sp = s.split(" "); sp s.split(" ") s.split s " " int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])}; a {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])} Integer.parseInt(sp[0]) Integer.parseInt Integer sp[0] sp 0 Integer.parseInt(sp[1]) Integer.parseInt Integer sp[1] sp 1 Integer.parseInt(sp[2]) Integer.parseInt Integer sp[2] sp 2 Arrays.sort(a) Arrays.sort Arrays a System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO") System.out.println System.out System System.out Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO" Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) Math.pow(a[2], 2) Math.pow Math a[2] a 2 2 Math.pow(a[0], 2) + Math.pow(a[1], 2) Math.pow(a[0], 2) Math.pow Math a[0] a 0 2 Math.pow(a[1], 2) Math.pow Math a[1] a 1 2 "YES" "NO" String s s public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    }
} public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    }
} Main

import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] argv) throws IOException {
        //*
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int lines = Integer.parseInt(in.readLine());
        for (int i = 0; i < lines; i++) {
            String s = in.readLine();
            if (s == null) {
                break;
            }
            f(s);
        }
        /*/
        f("4 3 5");
        f("4 3 6");
        f("8 8 8");
        //*/
    }

    public static void f(String s) {
        String[] sp = s.split(" ");
        int[] a = {Integer.parseInt(sp[0]),
                   Integer.parseInt(sp[1]),
                   Integer.parseInt(sp[2])};
        Arrays.sort(a);
        System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
    }
}