import java.util.Scanner;

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

    private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    } try (Scanner in = new Scanner(System.in)) {
            solve(in);
        } {
            solve(in);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) solve(in) solve in String[] args args private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    } solve {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    } int N = in.nextInt(); N in.nextInt() in.nextInt in while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        } N-- > 0 N-- N 0 {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        } int a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt(); c in.nextInt() in.nextInt in int A = a * a A a * a a a B = b * b B b * b b b C = c * c; C c * c c c boolean isRight; isRight if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            } A > B && A > C A > B A B A > C A C {
                isRight = A == B + C;
            } isRight = A == B + C isRight A == B + C A B + C B C if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            } B > A && B > C B > A B A B > C B C {
                isRight = B == A + C;
            } isRight = B == A + C isRight B == A + C B A + C A C {
                isRight = C == A + B;
            } isRight = C == A + B isRight C == A + B C A + B A B System.out.println(isRight ? "YES" : "NO") System.out.println System.out System System.out isRight ? "YES" : "NO" isRight "YES" "NO" Scanner in in public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            solve(in);
        }
    }

    private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    }
} Main
import java.util.Scanner;

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

    private static void solve(Scanner in) {
        int N = in.nextInt();
        while (N-- > 0) {
            int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
            int A = a * a, B = b * b, C = c * c;
            boolean isRight;
            if (A > B && A > C) {
                isRight = A == B + C;
            } else if (B > A && B > C) {
                isRight = B == A + C;
            } else {
                isRight = C == A + B;
            }
            System.out.println(isRight ? "YES" : "NO");
        }
    }
}