import java.util.Arrays;
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[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 {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        } {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        } int[] ia = new int[3]; ia new int[3] 3 ia[0] = scanner.nextInt() ia[0] ia 0 scanner.nextInt() scanner.nextInt scanner ia[1] = scanner.nextInt() ia[1] ia 1 scanner.nextInt() scanner.nextInt scanner ia[2] = scanner.nextInt() ia[2] ia 2 scanner.nextInt() scanner.nextInt scanner Arrays.sort(ia) Arrays.sort Arrays ia if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            } ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2] ia[0]*ia[0] + ia[1]*ia[1] ia[0]*ia[0] ia[0] ia 0 ia[0] ia 0 ia[1]*ia[1] ia[1] ia 1 ia[1] ia 1 ia[2]*ia[2] ia[2] ia 2 ia[2] ia 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) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i=0; i<n; i++) {
            int[] ia = new int[3];
            ia[0] = scanner.nextInt();
            ia[1] = scanner.nextInt();
            ia[2] = scanner.nextInt();
            Arrays.sort(ia);
            if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
}