import java.io.*;
import java.util.StringTokenizer;
import java.util.Collections;
import java.util.ArrayList;

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

		try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		}
	}
} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util import java.util.Collections; Collections java.util import java.util.ArrayList; ArrayList java.util class Main {
	public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		}
	}
} Main public static void main(String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		} catch (IOException e) {
			System.out.println("IOException!");
		} IOException e {
			System.out.println("IOException!");
		} System.out.println("IOException!") System.out.println System.out System System.out "IOException!" {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} 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 buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					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 buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			} {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			} String buf = br.readLine(); buf br.readLine() br.readLine br StringTokenizer st = new StringTokenizer(buf); st new StringTokenizer(buf) ArrayList<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() a.add(Integer.parseInt(st.nextToken())) a.add a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st a.add(Integer.parseInt(st.nextToken())) a.add a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st a.add(Integer.parseInt(st.nextToken())) a.add a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Collections.sort(a) Collections.sort Collections a if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO"); Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2) Math.pow(a.get(0),2)+Math.pow(a.get(1),2) Math.pow(a.get(0),2) Math.pow Math a.get(0) a.get a 0 2 Math.pow(a.get(1),2) Math.pow Math a.get(1) a.get a 1 2 Math.pow(a.get(2),2) Math.pow Math a.get(2) a.get a 2 2 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
import java.io.*;
import java.util.StringTokenizer;
import java.util.Collections;
import java.util.ArrayList;

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

		try {
			int n = Integer.parseInt(br.readLine());
			for (int i=0;i<n;i++) {
				String buf = br.readLine();
				StringTokenizer st = new StringTokenizer(buf);
				ArrayList<Integer> a = new ArrayList<Integer>();
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
				a.add(Integer.parseInt(st.nextToken()));
	
				Collections.sort(a);
				if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
					System.out.println("YES");
				else System.out.println("NO");
			}
		} catch (IOException e) {
			System.out.println("IOException!");
		}
	}
}