import java.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt(); // the number of data set
	int a, b, c; // length

	for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	}
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt(); // the number of data set
	int a, b, c; // length

	for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	}
    }
} Main public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt(); // the number of data set
	int a, b, c; // length

	for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	}
    } main {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt(); // the number of data set
	int a, b, c; // length

	for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	}
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int a a b b c; c for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	} {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	} a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan a = a*a a a*a a a b = b*b b b*b b b c = c*c c c*c c c if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    } (a == b+c) || (b == c+a) || (c == a+b) (a == b+c) || (b == c+a) || (c == a+b) (a == b+c) a b+c b c (b == c+a) b c+a c a (c == a+b) c a+b a 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.util.Scanner;

class Main {
    public static void main (String args[]) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt(); // the number of data set
	int a, b, c; // length

	for(int i=0; i<N; i++) {
	    a = scan.nextInt();
	    b = scan.nextInt();
	    c = scan.nextInt();

	    a = a*a; b = b*b; c = c*c;

	    if ((a == b+c) || (b == c+a) || (c == a+b)) {
		System.out.println("YES");
	    }
	    else {
		System.out.println("NO");
	    }
	    
	}
    }
}