import java.io.*;
import java.util.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		StringTokenizer st;
		int i,a,b,c;
		try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		StringTokenizer st;
		int i,a,b,c;
		try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		StringTokenizer st;
		int i,a,b,c;
		try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		}
	} main {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		StringTokenizer st;
		int i,a,b,c;
		try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		}
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) String s; s StringTokenizer st; st int i i a a b b c; c try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		} catch (NoSuchElementException e) {
			System.exit(0);
		} NoSuchElementException e {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} s = r.readLine() s r.readLine() r.readLine r int number = Integer.parseInt(s); number Integer.parseInt(s) Integer.parseInt Integer s for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} i=0; i=0 i 0 i<number i number i++ i++ i {
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} {
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} s = r.readLine() s r.readLine() r.readLine r st = new StringTokenizer(s," ") st new StringTokenizer(s," ") a = Integer.parseInt(st.nextToken().toString()) a Integer.parseInt(st.nextToken().toString()) Integer.parseInt Integer st.nextToken().toString() st.nextToken().toString st.nextToken() st.nextToken st b = Integer.parseInt(st.nextToken().toString()) b Integer.parseInt(st.nextToken().toString()) Integer.parseInt Integer st.nextToken().toString() st.nextToken().toString st.nextToken() st.nextToken st c = Integer.parseInt(st.nextToken().toString()) c Integer.parseInt(st.nextToken().toString()) Integer.parseInt Integer st.nextToken().toString() st.nextToken().toString st.nextToken() st.nextToken st if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} (a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b) (a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b) (a*a+b*b==c*c) a*a+b*b a*a a a b*b b b c*c c c (b*b+c*c==a*a) b*b+c*c b*b b b c*c c c a*a a a (c*c+a*a==b*b) c*c+a*a c*c c c a*a a a b*b b b {
					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" String[] args args
import java.io.*;
import java.util.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s;
		StringTokenizer st;
		int i,a,b,c;
		try {
			s = r.readLine();
			int number = Integer.parseInt(s);
			for(i=0;i<number;i++){
				s = r.readLine();
				st = new StringTokenizer(s," ");
				a = Integer.parseInt(st.nextToken().toString());
				b = Integer.parseInt(st.nextToken().toString());
				c = Integer.parseInt(st.nextToken().toString());
				if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (NoSuchElementException e) {
			System.exit(0);
		}
	}
}