n = int(raw_input())

for i in range(n):
	temp = [int(x) for x in raw_input().split()]
	temp.sort(reverse = True)

	if temp[0] ** 2 == temp[1] ** 2 + temp[2] ** 2:
		print "YES"
	else:
		print "NO" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for i in range(n):
	temp = [int(x) for x in raw_input().split()]
	temp.sort(reverse = True)

	if temp[0] ** 2 == temp[1] ** 2 + temp[2] ** 2:
		print "YES"
	else:
		print "NO" i range(n) range n int(x) for x in raw_input().split() for x in raw_input().split() x raw_input().split() ().split () raw_input split for x in raw_input().split() int(x) int x temp = [int(x) for x in raw_input().split()] temp [int(x) for x in raw_input().split()] temp.sort(reverse = True) temp.sort temp sort reverse = True reverse True if temp[0] ** 2 == temp[1] ** 2 + temp[2] ** 2:
		print "YES"
	else:
		print "NO" temp[0] ** 2 == temp[1] ** 2 + temp[2] ** 2 temp[0] ** 2 temp[0] temp 0 2 temp[1] ** 2 + temp[2] ** 2 temp[1] ** 2 temp[1] temp 1 2 temp[2] ** 2 temp[2] temp 2 2 print print n = int(raw_input()) int(raw_input()) n temp = [int(x) for x in raw_input().split()] [int(x) for x in raw_input().split()] temp
n = int(raw_input())

for i in range(n):
	temp = [int(x) for x in raw_input().split()]
	temp.sort(reverse = True)

	if temp[0] ** 2 == temp[1] ** 2 + temp[2] ** 2:
		print "YES"
	else:
		print "NO"