
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author User
 */
public class Main {
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    }
} Main public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    } main {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int x =input.nextInt(); x input.nextInt() input.nextInt input for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        } int i = 0; int i = 0; i 0 i < x i x i++ i++ i {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        } {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        } ArrayList<Integer> out = new ArrayList<Integer>(); out new ArrayList<Integer>() for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                 out.add(input.nextInt());
             } {
                 out.add(input.nextInt());
             } out.add(input.nextInt()) out.add out input.nextInt() input.nextInt input Collections.sort(out) Collections.sort Collections out System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO") System.out.println System.out System System.out Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO" Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2) Math.pow(out.get(out.size()-1), 2) Math.pow Math out.get(out.size()-1) out.get out out.size()-1 out.size() out.size out 1 2 Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2) Math.pow(out.get(0), 2) Math.pow Math out.get(0) out.get out 0 2 Math.pow(out.get(1), 2) Math.pow Math out.get(1) out.get out 1 2 "YES" "NO" String[] args args public class Main {
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    }
} public class Main {
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    }
} Main

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author User
 */
public class Main {
    public static void main(String[] args) {
         Scanner input = new Scanner(System.in);
         int x =input.nextInt();
         for (int i = 0; i < x; i++) {
            ArrayList<Integer> out = new ArrayList<Integer>();
             for (int j = 0; j < 3; j++) {
                 out.add(input.nextInt());
             }
             Collections.sort(out);
             System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
        }
    }
}