def tri(a,b,c):
	return a**2 == b**2 + c**2
for time in range(int(input())):
	x,y,z = [int(i) for i in input().split()]
	if tri(x,y,z) or tri(y,z,x) or tri(z,x,y):
		print("YES")
	else:
		print("NO") def tri(a,b,c):
	return a**2 == b**2 + c**2 tri return a**2 == b**2 + c**2 a**2 == b**2 + c**2 a**2 a 2 b**2 + c**2 b**2 b 2 c**2 c 2 a a b b c c for time in range(int(input())):
	x,y,z = [int(i) for i in input().split()]
	if tri(x,y,z) or tri(y,z,x) or tri(z,x,y):
		print("YES")
	else:
		print("NO") time range(int(input())) range int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x,y,z = [int(i) for i in input().split()] x [int(i) for i in input().split()] y z if tri(x,y,z) or tri(y,z,x) or tri(z,x,y):
		print("YES")
	else:
		print("NO") tri(x,y,z) or tri(y,z,x) or tri(z,x,y) tri(x,y,z) or tri(y,z,x) tri(x,y,z) tri x y z tri(y,z,x) tri y z x tri(z,x,y) tri z x y print("YES") print "YES" print("NO") print "NO" x,y,z = [int(i) for i in input().split()] [int(i) for i in input().split()] x def tri(a,b,c):
	return a**2 == b**2 + c**2 def tri(a,b,c):
	return a**2 == b**2 + c**2 tri y,z = [int(i) for i in input().split()] [int(i) for i in input().split()] y z = [int(i) for i in input().split()] [int(i) for i in input().split()] z
def tri(a,b,c):
	return a**2 == b**2 + c**2
for time in range(int(input())):
	x,y,z = [int(i) for i in input().split()]
	if tri(x,y,z) or tri(y,z,x) or tri(z,x,y):
		print("YES")
	else:
		print("NO")