import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    }

} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        } catch(Exception e){
            System.out.println(e);
        } Exception e {
            System.out.println(e);
        } System.out.println(e) System.out.println System.out System System.out e {
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        } ArrayList<Integer> side; side String line = br.readLine(); line br.readLine() br.readLine br int x = Integer.parseInt(line); x Integer.parseInt(line) Integer.parseInt Integer line StringTokenizer tokens; tokens for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            } int i=0; int i=0; i 0 i<x i x i++ i++ i {
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            } {
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            } line = br.readLine() line br.readLine() br.readLine br tokens = new StringTokenizer(line) tokens new StringTokenizer(line) side = new ArrayList<>() side new ArrayList<>() side.add(Integer.parseInt(tokens.nextToken())) side.add side Integer.parseInt(tokens.nextToken()) Integer.parseInt Integer tokens.nextToken() tokens.nextToken tokens side.add(Integer.parseInt(tokens.nextToken())) side.add side Integer.parseInt(tokens.nextToken()) Integer.parseInt Integer tokens.nextToken() tokens.nextToken tokens side.add(Integer.parseInt(tokens.nextToken())) side.add side Integer.parseInt(tokens.nextToken()) Integer.parseInt Integer tokens.nextToken() tokens.nextToken tokens Collections.sort(side) Collections.sort Collections side if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                } side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2) side.get(0)*side.get(0)+side.get(1)*side.get(1) side.get(0)*side.get(0) side.get(0) side.get side 0 side.get(0) side.get side 0 side.get(1)*side.get(1) side.get(1) side.get side 1 side.get(1) side.get side 1 side.get(2)*side.get(2) side.get(2) side.get side 2 side.get(2) side.get side 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 IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    }

} public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.StringTokenizer;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
            ArrayList<Integer> side;
            String line = br.readLine();
            int x = Integer.parseInt(line);
            StringTokenizer tokens;
            for(int i=0;i<x;i++){
                line = br.readLine();
                tokens = new StringTokenizer(line);
                side = new ArrayList<>();
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                side.add(Integer.parseInt(tokens.nextToken()));
                Collections.sort(side);
                if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }
        }
        catch(Exception e){
            System.out.println(e);
        }

    }

}