import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
    public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    }
} Main public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    } main {

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    } BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); bf new BufferedReader(new InputStreamReader(System.in)) int n=Integer.parseInt(bf.readLine()); n Integer.parseInt(bf.readLine()) Integer.parseInt Integer bf.readLine() bf.readLine bf StringBuilder ans=new StringBuilder(); ans new StringBuilder() for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        } {
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        } String[] str=bf.readLine().split(" "); str bf.readLine().split(" ") bf.readLine().split bf.readLine() bf.readLine bf " " double x=Math.pow(Integer.parseInt(str[0]),2); x Math.pow(Integer.parseInt(str[0]),2) Math.pow Math Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 2 double y=Math.pow(Integer.parseInt(str[1]),2); y Math.pow(Integer.parseInt(str[1]),2) Math.pow Math Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 2 double z=Math.pow(Integer.parseInt(str[2]),2); z Math.pow(Integer.parseInt(str[2]),2) Math.pow Math Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 2 if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n"); x+y==z || x+z==y || y+z==x x+y==z || x+z==y || y+z==x x+y==z x+y x y z x+z==y x+z x z y y+z==x y+z y z x ans.append("YES\n") ans.append ans "YES\n" ans.append("NO\n") ans.append ans "NO\n" System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    }
} public class Main{
    public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
    public static void main(String[] args) throws IOException{

        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(bf.readLine());
        StringBuilder ans=new StringBuilder();


        for(int i=0;i<n;i++){
            String[] str=bf.readLine().split(" ");

            double x=Math.pow(Integer.parseInt(str[0]),2);
            double y=Math.pow(Integer.parseInt(str[1]),2);
            double z=Math.pow(Integer.parseInt(str[2]),2);


            if(x+y==z || x+z==y || y+z==x)
                ans.append("YES\n");
            else
                ans.append("NO\n");
        }
        System.out.print(ans);
    }
}