N = input()
a = []
for i in range(N):
	a = map(int, raw_input().split())
	b = [0]
	for i in a:
		j = 0
		while j < 3:
			if i > b[j]:
				b.insert(j, i)
				break
			j += 1
	if b[0]**2 == b[1]**2 + b[2]**2:
		print "YES"
	else:
		print "NO" N = input() N input() input a = [] a [] for i in range(N):
	a = map(int, raw_input().split())
	b = [0]
	for i in a:
		j = 0
		while j < 3:
			if i > b[j]:
				b.insert(j, i)
				break
			j += 1
	if b[0]**2 == b[1]**2 + b[2]**2:
		print "YES"
	else:
		print "NO" i range(N) range N a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split b = [0] b [0] 0 for i in a:
		j = 0
		while j < 3:
			if i > b[j]:
				b.insert(j, i)
				break
			j += 1
	 i a j = 0 j 0 while j < 3:
			if i > b[j]:
				b.insert(j, i)
				break
			j += 1
	 j < 3 j 3 if i > b[j]:
				b.insert(j, i)
				break
			 i > b[j] i b[j] b j b.insert(j, i) b.insert b insert j i break j += 1 j 1 if b[0]**2 == b[1]**2 + b[2]**2:
		print "YES"
	else:
		print "NO" b[0]**2 == b[1]**2 + b[2]**2 b[0]**2 b[0] b 0 2 b[1]**2 + b[2]**2 b[1]**2 b[1] b 1 2 b[2]**2 b[2] b 2 2 print print a = [] [] a b = [0] [0] b a = map(int, raw_input().split()) map(int, raw_input().split()) a j += 1 1 j j = 0 0 j N = input() input() N
N = input()
a = []
for i in range(N):
	a = map(int, raw_input().split())
	b = [0]
	for i in a:
		j = 0
		while j < 3:
			if i > b[j]:
				b.insert(j, i)
				break
			j += 1
	if b[0]**2 == b[1]**2 + b[2]**2:
		print "YES"
	else:
		print "NO"