n = int(input())
for _ in range(n):
	edges = list(map(int, input().split()))
	if len(edges) == 0:
		break
	edges.sort()

	if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
		print("YES")
	else:
		print("NO") n = int(input()) n int(input()) int input() input for _ in range(n):
	edges = list(map(int, input().split()))
	if len(edges) == 0:
		break
	edges.sort()

	if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
		print("YES")
	else:
		print("NO") _ range(n) range n edges = list(map(int, input().split())) edges list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if len(edges) == 0:
		break
	 len(edges) == 0 len(edges) len edges 0 break edges.sort() edges.sort edges sort if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
		print("YES")
	else:
		print("NO") edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2 edges[0] ** 2 + edges[1] ** 2 edges[0] ** 2 edges[0] edges 0 2 edges[1] ** 2 edges[1] edges 1 2 edges[2] ** 2 edges[2] edges 2 2 print("YES") print "YES" print("NO") print "NO" edges = list(map(int, input().split())) list(map(int, input().split())) edges n = int(input()) int(input()) n
n = int(input())
for _ in range(n):
	edges = list(map(int, input().split()))
	if len(edges) == 0:
		break
	edges.sort()

	if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
		print("YES")
	else:
		print("NO")