import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) throws java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args) throws java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int N = Integer.parseInt(line); N Integer.parseInt(line) Integer.parseInt Integer line for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        } {
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        } String l = br.readLine(); l br.readLine() br.readLine br Scanner sc = new Scanner(l); sc new Scanner(l) int a[]; a a = new int[3] a new int[3] 3 for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
                a[j] = sc.nextInt();
            } {
                a[j] = sc.nextInt();
            } a[j] = sc.nextInt() a[j] a j sc.nextInt() sc.nextInt sc Arrays.sort(a) Arrays.sort Arrays a if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            } (a[0]*a[0] + a[1]*a[1]) == a[2]*a[2] (a[0]*a[0] + a[1]*a[1]) a[0]*a[0] a[0] a 0 a[0] a 0 a[1]*a[1] a[1] a 1 a[1] a 1 a[2]*a[2] a[2] a 2 a[2] a 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 java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws java.io.IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
}