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

class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		}
	}
} Main static List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		} n != 0 n 0 {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		} list.clear() list.clear list Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt()) Collections.addAll Collections list scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan list.sort(Comparator.reverseOrder()) list.sort list Comparator.reverseOrder() Comparator.reverseOrder Comparator if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} (list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2))) (list.get(0) * list.get(0)) list.get(0) list.get list 0 list.get(0) list.get list 0 ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2))) (list.get(1) * list.get(1)) list.get(1) list.get list 1 list.get(1) list.get list 1 (list.get(2) * list.get(2)) list.get(2) list.get list 2 list.get(2) list.get list 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" n-- n String[] args args
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

class Main {
	static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		while (n != 0) {
			list.clear();
			Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
			list.sort(Comparator.reverseOrder());
			if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			n--;
		}
	}
}