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