N = int(input())
for i in range(N):
	line = input()
	l = [None]*3
	l[0] = int(line.split()[0])
	l[1] = int(line.split()[1])
	l[2] = int(line.split()[2])
	l.sort()
	if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO") N = int(input()) N int(input()) int input() input for i in range(N):
	line = input()
	l = [None]*3
	l[0] = int(line.split()[0])
	l[1] = int(line.split()[1])
	l[2] = int(line.split()[2])
	l.sort()
	if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO") i range(N) range N line = input() line input() input l = [None]*3 l [None]*3 [None] None 3 l[0] = int(line.split()[0]) l[0] l 0 int(line.split()[0]) int line.split()[0] line.split() line.split line split 0 l[1] = int(line.split()[1]) l[1] l 1 int(line.split()[1]) int line.split()[1] line.split() line.split line split 1 l[2] = int(line.split()[2]) l[2] l 2 int(line.split()[2]) int line.split()[2] line.split() line.split line split 2 l.sort() l.sort l sort if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO") l[0]**2+l[1]**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 l[2]**2 l[2] l 2 2 print("YES") print "YES" print("NO") print "NO" line = input() input() line l = [None]*3 [None]*3 l N = int(input()) int(input()) N
N = int(input())
for i in range(N):
	line = input()
	l = [None]*3
	l[0] = int(line.split()[0])
	l[1] = int(line.split()[1])
	l[2] = int(line.split()[2])
	l.sort()
	if l[0]**2+l[1]**2==l[2]**2:
		print("YES")
	else:
		print("NO")