import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        } catch (Exception ex){
            System.exit(0);
        } Exception ex {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        } int n  = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                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 st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            } {
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            } String st = br.readLine(); st br.readLine() br.readLine br String[] s = st.split(" ",0); s st.split(" ",0) st.split st " " 0 int[] k = new int[3]; k new int[3] 3 k[0]=Integer.parseInt(s[0]) k[0] k 0 Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 k[1]=Integer.parseInt(s[1]) k[1] k 1 Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 k[2]=Integer.parseInt(s[2]) k[2] k 2 Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 Arrays.sort(k) Arrays.sort Arrays k if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            } k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0]) k[2]*k[2] k[2] k 2 k[2] k 2 (k[1]*k[1])+(k[0]*k[0]) (k[1]*k[1]) k[1] k 1 k[1] k 1 (k[0]*k[0]) k[0] k 0 k[0] k 0 {
                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 IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            int n  = Integer.parseInt(br.readLine());
            for(int i=0;i<n;i++){
            String st = br.readLine();
            String[] s = st.split(" ",0);
            int[] k = new int[3];
            k[0]=Integer.parseInt(s[0]);
            k[1]=Integer.parseInt(s[1]);
            k[2]=Integer.parseInt(s[2]);
            Arrays.sort(k);
            if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
            }
        }catch (Exception ex){
            System.exit(0);
        }
    }
}