
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
class Main {
	public static void main(String[] args) {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		ArrayList<String> output = new ArrayList<String>();
		String input;
		int n;
		try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util class Main {
	public static void main(String[] args) {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		ArrayList<String> output = new ArrayList<String>();
		String input;
		int n;
		try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		ArrayList<String> output = new ArrayList<String>();
		String input;
		int n;
		try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		ArrayList<String> output = new ArrayList<String>();
		String input;
		int n;
		try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) ArrayList<String> output = new ArrayList<String>(); output new ArrayList<String>() String input; input int n; n try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		} catch (IOException e) {
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} 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++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			} {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			} input = br.readLine() input br.readLine() br.readLine br int[] sides = new int[3]; sides new int[3] 3 sides[0] = Integer.parseInt(input.split(" ")[0]) sides[0] sides 0 Integer.parseInt(input.split(" ")[0]) Integer.parseInt Integer input.split(" ")[0] input.split(" ") input.split input " " 0 sides[1] = Integer.parseInt(input.split(" ")[1]) sides[1] sides 1 Integer.parseInt(input.split(" ")[1]) Integer.parseInt Integer input.split(" ")[1] input.split(" ") input.split input " " 1 sides[2] = Integer.parseInt(input.split(" ")[2]) sides[2] sides 2 Integer.parseInt(input.split(" ")[2]) Integer.parseInt Integer input.split(" ")[2] input.split(" ") input.split input " " 2 Arrays.sort(sides) Arrays.sort Arrays sides if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				} sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0 sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0] sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0] sides[2]*sides[2] sides[2] sides 2 sides[2] sides 2 sides[1]*sides[1] sides[1] sides 1 sides[1] sides 1 sides[0]*sides[0] sides[0] sides 0 sides[0] sides 0 0 {
					output.add("YES");
				} output.add("YES") output.add output "YES" {
					output.add("NO");
				} output.add("NO") output.add output "NO" for (String i : output) {
				System.out.println(i);
			} String i output {
				System.out.println(i);
			} {
				System.out.println(i);
			} System.out.println(i) System.out.println System.out System System.out i String[] args args

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
class Main {
	public static void main(String[] args) {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);
		ArrayList<String> output = new ArrayList<String>();
		String input;
		int n;
		try {
			n = Integer.parseInt(br.readLine());
			for (int i = 0; i < n; i++) {
				input = br.readLine();
				int[] sides = new int[3];
				sides[0] = Integer.parseInt(input.split(" ")[0]);
				sides[1] = Integer.parseInt(input.split(" ")[1]);
				sides[2] = Integer.parseInt(input.split(" ")[2]);
				Arrays.sort(sides);
				if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
					output.add("YES");
				}else{
					output.add("NO");
				}
			}
			for (String i : output) {
				System.out.println(i);
			}
		} catch (IOException e) {
			System.out.println(e);
		}
	}
}