import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }

} Main public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int dataCount = Integer.parseInt(reader.readLine()); dataCount Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String[] inputDataList = new String[dataCount]; inputDataList new String[dataCount] dataCount for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        } int i = 0; int i = 0; i 0 i < dataCount i dataCount i++ i++ i {
            inputDataList[i] = reader.readLine();
        } {
            inputDataList[i] = reader.readLine();
        } inputDataList[i] = reader.readLine() inputDataList[i] inputDataList i reader.readLine() reader.readLine reader for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < dataCount i dataCount i++ i++ i {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } String[] data = inputDataList[i].split(" "); data inputDataList[i].split(" ") inputDataList[i].split inputDataList[i] inputDataList i " " int a = Integer.parseInt(data[0]); a Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 int b = Integer.parseInt(data[1]); b Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 int c = Integer.parseInt(data[2]); c Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 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" if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2) Math.pow(b, 2) + Math.pow(c, 2) Math.pow(b, 2) Math.pow Math b 2 Math.pow(c, 2) Math.pow Math c 2 Math.pow(a, 2) Math.pow Math a 2 {
                System.out.println("YES");
            } System.out.println("YES") System.out.println System.out System System.out "YES" if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2) Math.pow(c, 2) + Math.pow(a, 2) Math.pow(c, 2) Math.pow Math c 2 Math.pow(a, 2) Math.pow Math a 2 Math.pow(b, 2) Math.pow Math b 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 public class Main {

    public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }

} public class Main {

    public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String args[]) throws NumberFormatException, IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int dataCount = Integer.parseInt(reader.readLine());
        String[] inputDataList = new String[dataCount];
        for (int i = 0; i < dataCount; i++) {
            inputDataList[i] = reader.readLine();
        }
        for (int i = 0; i < dataCount; i++) {
            String[] data = inputDataList[i].split(" ");
            int a = Integer.parseInt(data[0]);
            int b = Integer.parseInt(data[1]);
            int c = Integer.parseInt(data[2]);
            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {
                System.out.println("YES");
            } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }

}