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

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	}

	public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} 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 Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	}

	public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} Main public static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	} main {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	} int N = input(); N input() input for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		} {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		} ArrayList<Integer> numList = new ArrayList<>(); numList new ArrayList<>() for (int j = 0; j < 3; j++) {

				numList.add(input());

			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {

				numList.add(input());

			} {

				numList.add(input());

			} numList.add(input()) numList.add numList input() input Collections.sort(numList) Collections.sort Collections numList if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			} isRight(numList.get(2), numList.get(1), numList.get(0)) isRight numList.get(2) numList.get numList 2 numList.get(1) numList.get numList 1 numList.get(0) numList.get numList 0 {

				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" close() close String[] args args public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	} isRight {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	} return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2); Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2) Math.pow(longSide, 2) Math.pow Math longSide 2 Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2) Math.pow(shortSideA, 2) Math.pow Math shortSideA 2 Math.pow(shortSideB, 2) Math.pow Math shortSideB 2 int longSide longSide int shortSideA shortSideA int shortSideB shortSideB public static int input() {

		return scanner.nextInt();

	} input {

		return scanner.nextInt();

	} return scanner.nextInt(); scanner.nextInt() scanner.nextInt scanner public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	} close {

		if (scanner != null) {

			scanner.close();

		}
	} if (scanner != null) {

			scanner.close();

		} scanner != null scanner null {

			scanner.close();

		} scanner.close() scanner.close scanner public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	}

	public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
} public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	}

	public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

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

public class Main {

	public static Scanner scanner = new Scanner(System.in);

	public static void main(String[] args) {

		int N = input();

		for (int i = 0; i < N; i++) {

			ArrayList<Integer> numList = new ArrayList<>();

			for (int j = 0; j < 3; j++) {

				numList.add(input());

			}

			Collections.sort(numList);

			if (isRight(numList.get(2), numList.get(1), numList.get(0))) {

				System.out.println("YES");

			} else {

				System.out.println("NO");

			}
		}

		close();

	}

	public static boolean isRight(int longSide, int shortSideA, int shortSideB) {

		return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);

	}

	public static int input() {

		return scanner.nextInt();

	}

	public static void close() {

		if (scanner != null) {

			scanner.close();

		}
	}
}