n = int(input())
L = [input() for i in range(n)]
for line in L:
	A = line.split()
	B = sorted([int(A[i]) for i in range(3)])
	if B[2]**2 == B[0]**2 + B[1]**2:
		print('YES')
	else:
		print('NO') n = int(input()) n int(input()) int input() input input() for i in range(n) for i in range(n) i range(n) range n for i in range(n) input() input L = [input() for i in range(n)] L [input() for i in range(n)] for line in L:
	A = line.split()
	B = sorted([int(A[i]) for i in range(3)])
	if B[2]**2 == B[0]**2 + B[1]**2:
		print('YES')
	else:
		print('NO') line L A = line.split() A line.split() line.split line split int(A[i]) for i in range(3) for i in range(3) i range(3) range 3 for i in range(3) int(A[i]) int A[i] A i B = sorted([int(A[i]) for i in range(3)]) B sorted([int(A[i]) for i in range(3)]) sorted [int(A[i]) for i in range(3)] if B[2]**2 == B[0]**2 + B[1]**2:
		print('YES')
	else:
		print('NO') B[2]**2 == B[0]**2 + B[1]**2 B[2]**2 B[2] B 2 2 B[0]**2 + B[1]**2 B[0]**2 B[0] B 0 2 B[1]**2 B[1] B 1 2 print('YES') print 'YES' print('NO') print 'NO' L = [input() for i in range(n)] [input() for i in range(n)] L B = sorted([int(A[i]) for i in range(3)]) sorted([int(A[i]) for i in range(3)]) B n = int(input()) int(input()) n A = line.split() line.split() A
n = int(input())
L = [input() for i in range(n)]
for line in L:
	A = line.split()
	B = sorted([int(A[i]) for i in range(3)])
	if B[2]**2 == B[0]**2 + B[1]**2:
		print('YES')
	else:
		print('NO')