times = int(input())

for i in range(0, times):
	edge = []
	for e in input().split(" "):
		edge.append(int(e))
	edge.sort()
	if pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2):
		print("YES")
	else:
		print("NO") times = int(input()) times int(input()) int input() input for i in range(0, times):
	edge = []
	for e in input().split(" "):
		edge.append(int(e))
	edge.sort()
	if pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2):
		print("YES")
	else:
		print("NO") i range(0, times) range 0 times edge = [] edge [] for e in input().split(" "):
		edge.append(int(e))
	 e input().split(" ") ().split () input split " " edge.append(int(e)) edge.append edge append int(e) int e edge.sort() edge.sort edge sort if pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2):
		print("YES")
	else:
		print("NO") pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2) pow(int(edge[0]), 2) + pow(int(edge[1]), 2) pow(int(edge[0]), 2) pow int(edge[0]) int edge[0] edge 0 2 pow(int(edge[1]), 2) pow int(edge[1]) int edge[1] edge 1 2 pow(int(edge[2]), 2) pow int(edge[2]) int edge[2] edge 2 2 print("YES") print "YES" print("NO") print "NO" edge = [] [] edge times = int(input()) int(input()) times
times = int(input())

for i in range(0, times):
	edge = []
	for e in input().split(" "):
		edge.append(int(e))
	edge.sort()
	if pow(int(edge[0]), 2) + pow(int(edge[1]), 2) == pow(int(edge[2]), 2):
		print("YES")
	else:
		print("NO")