n = raw_input()
while 1:
	try :
		a = map(int,raw_input().split())
		a.sort()
		a.reverse()
#		print a
		if a[0]**2 == a[1]**2 + a[2]**2:
			print "YES"
		else : 
			print "NO"
	except EOFError:
		break n = raw_input() n raw_input() raw_input while 1:
	try :
		a = map(int,raw_input().split())
		a.sort()
		a.reverse()
#		print a
		if a[0]**2 == a[1]**2 + a[2]**2:
			print "YES"
		else : 
			print "NO"
	except EOFError:
		break 1 try :
		a = map(int,raw_input().split())
		a.sort()
		a.reverse()
#		print a
		if a[0]**2 == a[1]**2 + a[2]**2:
			print "YES"
		else : 
			print "NO"
	except EOFError:
		break except EOFError:
		break break a = map(int,raw_input().split()) a map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split a.sort() a.sort a sort a.reverse() a.reverse a reverse if a[0]**2 == a[1]**2 + a[2]**2:
			print "YES"
		else : 
			print "NO"
	 a[0]**2 == a[1]**2 + a[2]**2 a[0]**2 a[0] a 0 2 a[1]**2 + a[2]**2 a[1]**2 a[1] a 1 2 a[2]**2 a[2] a 2 2 print print a = map(int,raw_input().split()) map(int,raw_input().split()) a n = raw_input() raw_input() n
n = raw_input()
while 1:
	try :
		a = map(int,raw_input().split())
		a.sort()
		a.reverse()
#		print a
		if a[0]**2 == a[1]**2 + a[2]**2:
			print "YES"
		else : 
			print "NO"
	except EOFError:
		break