import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) 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 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[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) 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[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        } {
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        } String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int b = Integer.parseInt(input[1]); b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int c = Integer.parseInt(input[2]); c Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 boolean isRight = false; isRight false if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b); a>=c && a>=b a>=c a c a>=b a b isRight = (a*a == b*b + c*c) isRight (a*a == b*b + c*c) a*a a a b*b + c*c b*b b b c*c c c if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b); b>=c && b>=a b>=c b c b>=a b a isRight = (b*b == c*c + a*a) isRight (b*b == c*c + a*a) b*b b b c*c + a*a c*c c c a*a a a if(c>=a && c>=b)   isRight = (c*c == a*a + b*b); c>=a && c>=b c>=a c a c>=b c b isRight = (c*c == a*a + b*b) isRight (c*c == a*a + b*b) c*c c c a*a + b*b a*a a a b*b b b if(isRight) System.out.println("YES");
            else        System.out.println("NO"); isRight System.out.println("YES") System.out.println System.out System System.out "YES" 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));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
} public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
} Main
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
}