import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                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.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int inputCount = Integer.parseInt(br.readLine()); inputCount Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < inputCount i inputCount i++ i++ i {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        } String line = br.readLine(); line br.readLine() br.readLine br List<Integer> sideLengthList = new ArrayList<>(); sideLengthList new ArrayList<>() for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            } String s line.split(" ") line.split line " " {
                sideLengthList.add( Integer.parseInt(s) );
            } {
                sideLengthList.add( Integer.parseInt(s) );
            } sideLengthList.add( Integer.parseInt(s) ) sideLengthList.add sideLengthList Integer.parseInt(s) Integer.parseInt Integer s Collections.sort(sideLengthList, Collections.reverseOrder()) Collections.sort Collections sideLengthList Collections.reverseOrder() Collections.reverseOrder Collections int cSide = sideLengthList.get(0); cSide sideLengthList.get(0) sideLengthList.get sideLengthList 0 int aSide = sideLengthList.get(1); aSide sideLengthList.get(1) sideLengthList.get sideLengthList 1 int bSide = sideLengthList.get(2); bSide sideLengthList.get(2) sideLengthList.get sideLengthList 2 if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            } cSide * cSide == aSide * aSide + bSide * bSide cSide * cSide cSide cSide aSide * aSide + bSide * bSide aSide * aSide aSide aSide bSide * bSide bSide bSide {
                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 Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int inputCount = Integer.parseInt(br.readLine());
        for( int i = 0; i < inputCount; i++) {
            String line = br.readLine();
            List<Integer> sideLengthList = new ArrayList<>();
            for( String s : line.split(" ")  ) {
                sideLengthList.add( Integer.parseInt(s) );
            }
            Collections.sort(sideLengthList, Collections.reverseOrder());
            int cSide = sideLengthList.get(0);
            int aSide = sideLengthList.get(1);
            int bSide = sideLengthList.get(2);
            if( cSide * cSide == aSide * aSide + bSide * bSide) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
}

