N = int(input())

for i in range(N):
	num = sorted(map(int, input().split()))
	if num[0] ** 2 + num[1] ** 2 == num[2] ** 2:
		print("YES")
	else:
		print("NO") N = int(input()) N int(input()) int input() input for i in range(N):
	num = sorted(map(int, input().split()))
	if num[0] ** 2 + num[1] ** 2 == num[2] ** 2:
		print("YES")
	else:
		print("NO") i range(N) range N num = sorted(map(int, input().split())) num sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split if num[0] ** 2 + num[1] ** 2 == num[2] ** 2:
		print("YES")
	else:
		print("NO") num[0] ** 2 + num[1] ** 2 == num[2] ** 2 num[0] ** 2 + num[1] ** 2 num[0] ** 2 num[0] num 0 2 num[1] ** 2 num[1] num 1 2 num[2] ** 2 num[2] num 2 2 print("YES") print "YES" print("NO") print "NO" num = sorted(map(int, input().split())) sorted(map(int, input().split())) num N = int(input()) int(input()) N
N = int(input())

for i in range(N):
	num = sorted(map(int, input().split()))
	if num[0] ** 2 + num[1] ** 2 == num[2] ** 2:
		print("YES")
	else:
		print("NO")