import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int x; x for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){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 a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        } {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            } a>b && a>c a>b a b a>c a c {
                x = a;
                a = c;
                c = x;
            } x = a x a a = c a c c = x c x if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            } b>a && b>c b>a b a b>c b c {
                x = b;
                b = c;
                c = x;
            } x = b x b b = c b c c = x c x if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");} a*a+b*b == c*c a*a+b*b a*a a a b*b b b c*c c c {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 sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x;

        for(int i=0;i<n;i++){
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            if(a>b && a>c){
                x = a;
                a = c;
                c = x;
            }else if(b>a && b>c){
                x = b;
                b = c;
                c = x;
            }
            if(a*a+b*b == c*c){System.out.println("YES");}
            else{System.out.println("NO");}
        }
        
    }
}
