def IsRightTriangle(tri):
	tri.sort()
	return tri[0]**2 + tri[1]**2 == tri[2]**2

N = eval(input())
for i in range(N):
	tri = [eval(item) for item in input().split()]
	print('YES' if IsRightTriangle(tri) else 'NO') def IsRightTriangle(tri):
	tri.sort()
	return tri[0]**2 + tri[1]**2 == tri[2]**2 IsRightTriangle tri.sort() tri.sort tri sort return tri[0]**2 + tri[1]**2 == tri[2]**2 tri[0]**2 + tri[1]**2 == tri[2]**2 tri[0]**2 + tri[1]**2 tri[0]**2 tri[0] tri 0 2 tri[1]**2 tri[1] tri 1 2 tri[2]**2 tri[2] tri 2 2 tri tri N = eval(input()) N eval(input()) eval input() input for i in range(N):
	tri = [eval(item) for item in input().split()]
	print('YES' if IsRightTriangle(tri) else 'NO') i range(N) range N eval(item) for item in input().split() for item in input().split() item input().split() ().split () input split for item in input().split() eval(item) eval item tri = [eval(item) for item in input().split()] tri [eval(item) for item in input().split()] print('YES' if IsRightTriangle(tri) else 'NO') print 'YES' if IsRightTriangle(tri) else 'NO' IsRightTriangle(tri) IsRightTriangle tri 'YES' 'NO' def IsRightTriangle(tri):
	tri.sort()
	return tri[0]**2 + tri[1]**2 == tri[2]**2 def IsRightTriangle(tri):
	tri.sort()
	return tri[0]**2 + tri[1]**2 == tri[2]**2 IsRightTriangle tri = [eval(item) for item in input().split()] [eval(item) for item in input().split()] tri N = eval(input()) eval(input()) N
def IsRightTriangle(tri):
	tri.sort()
	return tri[0]**2 + tri[1]**2 == tri[2]**2

N = eval(input())
for i in range(N):
	tri = [eval(item) for item in input().split()]
	print('YES' if IsRightTriangle(tri) else 'NO')