n=int(input())
a_list=[]
for i in range(n):
	k=list(map(int,input().split(" ")))
	L,M,N=sorted(k)
	if L**2+M**2==N**2:
		a_list.append("YES")
	else:
		a_list.append("NO")
for i in a_list:
	print(i) n=int(input()) n int(input()) int input() input a_list=[] a_list [] for i in range(n):
	k=list(map(int,input().split(" ")))
	L,M,N=sorted(k)
	if L**2+M**2==N**2:
		a_list.append("YES")
	else:
		a_list.append("NO") i range(n) range n k=list(map(int,input().split(" "))) k list(map(int,input().split(" "))) list map(int,input().split(" ")) map int input().split(" ") ().split () input split " " L,M,N=sorted(k) L sorted(k) sorted k M N if L**2+M**2==N**2:
		a_list.append("YES")
	else:
		a_list.append("NO") L**2+M**2==N**2 L**2+M**2 L**2 L 2 M**2 M 2 N**2 N 2 a_list.append("YES") a_list.append a_list append "YES" a_list.append("NO") a_list.append a_list append "NO" for i in a_list:
	print(i) i a_list print(i) print i n=int(input()) int(input()) n N=sorted(k) sorted(k) N L,M,N=sorted(k) sorted(k) L k=list(map(int,input().split(" "))) list(map(int,input().split(" "))) k M,N=sorted(k) sorted(k) M a_list=[] [] a_list
n=int(input())
a_list=[]
for i in range(n):
	k=list(map(int,input().split(" ")))
	L,M,N=sorted(k)
	if L**2+M**2==N**2:
		a_list.append("YES")
	else:
		a_list.append("NO")
for i in a_list:
	print(i)