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

public class Main {

    public static void main(String[] args) throws NumberFormatException,
            IOException {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    }
} 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 {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    }
} Main public static void main(String[] args) throws NumberFormatException,
            IOException {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    } main {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    } final String SPACE = " "; SPACE " " BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() final int cntData = Integer.parseInt(br.readLine()); cntData Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int a; a int b; b int c; c String data[] = new String[3]; data new String[3] 3 String lineString; lineString for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        } int i = 0; int i = 0; i 0 i < cntData i cntData i++ i++ i {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        } {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        } lineString = br.readLine() lineString br.readLine() br.readLine br data = lineString.split(SPACE) data lineString.split(SPACE) lineString.split lineString SPACE a = Integer.parseInt(data[0]) a Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 b = Integer.parseInt(data[1]) b Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 c = Integer.parseInt(data[2]) c Integer.parseInt(data[2]) Integer.parseInt Integer data[2] data 2 if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            } a * a + b * b == c * c a * a + b * b a * a a a b * b b b c * c c c {
                sb.append("YES\r\n");
            } sb.append("YES\r\n") sb.append sb "YES\r\n" if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            } a * a + c * c == b * b a * a + c * c a * a a a c * c c c b * b b b {
                sb.append("YES\r\n");
            } sb.append("YES\r\n") sb.append sb "YES\r\n" if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            } b * b + c * c == a * a b * b + c * c b * b b b c * c c c a * a a a {
                sb.append("YES\r\n");
            } sb.append("YES\r\n") sb.append sb "YES\r\n" {
                sb.append("NO\r\n");
            } sb.append("NO\r\n") sb.append sb "NO\r\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args) throws NumberFormatException,
            IOException {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    }
} public class Main {

    public static void main(String[] args) throws NumberFormatException,
            IOException {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    }
} 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 {
        final String SPACE = " ";

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();

        final int cntData = Integer.parseInt(br.readLine());

        int a;
        int b;
        int c;
        String data[] = new String[3];

        String lineString;
        for (int i = 0; i < cntData; i++) {
            lineString = br.readLine();

            data = lineString.split(SPACE);
            a = Integer.parseInt(data[0]);
            b = Integer.parseInt(data[1]);
            c = Integer.parseInt(data[2]);

            if (a * a + b * b == c * c) {
                sb.append("YES\r\n");
            } else if (a * a + c * c == b * b) {
                sb.append("YES\r\n");
            } else if (b * b + c * c == a * a) {
                sb.append("YES\r\n");
            } else {
                sb.append("NO\r\n");
            }
        }

        System.out.print(sb);

    }
}