n=int(input())
for i in range(n):
	A=[int(j) for j in input().split()]
	A.sort()
	if A[0]**2+A[1]**2==A[2]**2:
		print("YES")
	else:
		print("NO") n=int(input()) n int(input()) int input() input for i in range(n):
	A=[int(j) for j in input().split()]
	A.sort()
	if A[0]**2+A[1]**2==A[2]**2:
		print("YES")
	else:
		print("NO") i range(n) range n int(j) for j in input().split() for j in input().split() j input().split() ().split () input split for j in input().split() int(j) int j A=[int(j) for j in input().split()] A [int(j) for j in input().split()] A.sort() A.sort A sort if A[0]**2+A[1]**2==A[2]**2:
		print("YES")
	else:
		print("NO") A[0]**2+A[1]**2==A[2]**2 A[0]**2+A[1]**2 A[0]**2 A[0] A 0 2 A[1]**2 A[1] A 1 2 A[2]**2 A[2] A 2 2 print("YES") print "YES" print("NO") print "NO" n=int(input()) int(input()) n A=[int(j) for j in input().split()] [int(j) for j in input().split()] A
n=int(input())
for i in range(n):
	A=[int(j) for j in input().split()]
	A.sort()
	if A[0]**2+A[1]**2==A[2]**2:
		print("YES")
	else:
		print("NO")