N=int(input())
for n in range(N):
	sides = list(map(int,input().split()))
	sides.sort()
	if sides[-1]**2 == sides[-2]**2 + sides[-3]**2:
		print("YES")
	else:
		print("NO") N=int(input()) N int(input()) int input() input for n in range(N):
	sides = list(map(int,input().split()))
	sides.sort()
	if sides[-1]**2 == sides[-2]**2 + sides[-3]**2:
		print("YES")
	else:
		print("NO") n range(N) range N sides = list(map(int,input().split())) sides list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split sides.sort() sides.sort sides sort if sides[-1]**2 == sides[-2]**2 + sides[-3]**2:
		print("YES")
	else:
		print("NO") sides[-1]**2 == sides[-2]**2 + sides[-3]**2 sides[-1]**2 sides[-1] sides -1 2 sides[-2]**2 + sides[-3]**2 sides[-2]**2 sides[-2] sides -2 2 sides[-3]**2 sides[-3] sides -3 2 print("YES") print "YES" print("NO") print "NO" N=int(input()) int(input()) N sides = list(map(int,input().split())) list(map(int,input().split())) sides
N=int(input())
for n in range(N):
	sides = list(map(int,input().split()))
	sides.sort()
	if sides[-1]**2 == sides[-2]**2 + sides[-3]**2:
		print("YES")
	else:
		print("NO")