import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int sides[] = new int[3]; sides new int[3] 3 int rank[] = new int[3]; rank new int[3] 3 for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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 {
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} {
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} sides[0]=sc.nextInt() sides[0] sides 0 sc.nextInt() sc.nextInt sc sides[1]=sc.nextInt() sides[1] sides 1 sc.nextInt() sc.nextInt sc sides[2]=sc.nextInt() sides[2] sides 2 sc.nextInt() sc.nextInt sc rank[0]=sides[0] rank[0] rank 0 sides[0] sides 0 rank[1]=sides[1] rank[1] rank 1 sides[1] sides 1 rank[2]=sides[2] rank[2] rank 2 sides[2] sides 2 for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			} int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			} {
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			} if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				} sides[j]<sides[j+1] sides[j] sides j sides[j+1] sides j+1 j 1 {
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				} rank[j]=sides[j+1] rank[j] rank j sides[j+1] sides j+1 j 1 rank[j+1]=sides[j] rank[j+1] rank j+1 j 1 sides[j] sides j if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			} rank[0]<rank[1] rank[0] rank 0 rank[1] rank 1 {
				rank[0]=rank[1];
				rank[1]=sides[0];
			} rank[0]=rank[1] rank[0] rank 0 rank[1] rank 1 rank[1]=sides[0] rank[1] rank 1 sides[0] sides 0 if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2] rank[0]*rank[0] rank[0] rank 0 rank[0] rank 0 rank[1]*rank[1]+rank[2]*rank[2] rank[1]*rank[1] rank[1] rank 1 rank[1] rank 1 rank[2]*rank[2] rank[2] rank 2 rank[2] rank 2 {
				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 public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int sides[] = new int[3];
		int rank[] = new int[3];

		for(int i=0;i<N;i++){
			sides[0]=sc.nextInt();
			sides[1]=sc.nextInt();
			sides[2]=sc.nextInt();
			rank[0]=sides[0];
			rank[1]=sides[1];
			rank[2]=sides[2];

			for(int j=0;j<2;j++){
				if(sides[j]<sides[j+1]){
					rank[j]=sides[j+1];
					rank[j+1]=sides[j];
				}
			}
			if(rank[0]<rank[1]){
				rank[0]=rank[1];
				rank[1]=sides[0];
			}

			if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}
}
