count = input()

for i in range(count):
	l = map(int, raw_input().split())
	l.sort()
	if(l[2]**2==l[0]**2+l[1]**2):
		print "YES"
	else:
		print "NO" count = input() count input() input for i in range(count):
	l = map(int, raw_input().split())
	l.sort()
	if(l[2]**2==l[0]**2+l[1]**2):
		print "YES"
	else:
		print "NO" i range(count) range count l = map(int, raw_input().split()) l map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split l.sort() l.sort l sort if(l[2]**2==l[0]**2+l[1]**2):
		print "YES"
	else:
		print "NO" l[2]**2==l[0]**2+l[1]**2 l[2]**2 l[2] l 2 2 l[0]**2+l[1]**2 l[0]**2 l[0] l 0 2 l[1]**2 l[1] l 1 2 print print count = input() input() count l = map(int, raw_input().split()) map(int, raw_input().split()) l
count = input()

for i in range(count):
	l = map(int, raw_input().split())
	l.sort()
	if(l[2]**2==l[0]**2+l[1]**2):
		print "YES"
	else:
		print "NO"