# -*- coding:utf-8 -*-

if __name__ == '__main__':

	N = int(raw_input())

	for i in range(0,N):

		a, b, c = raw_input().split()
		triangle = [int(a),int(b),int(c)]
		triangle.sort()
		
		if(triangle[2]**2 == triangle[0]**2 + triangle[1]**2):
			print 'YES'
		else :
			print 'NO' if __name__ == '__main__':

	N = int(raw_input())

	for i in range(0,N):

		a, b, c = raw_input().split()
		triangle = [int(a),int(b),int(c)]
		triangle.sort()
		
		if(triangle[2]**2 == triangle[0]**2 + triangle[1]**2):
			print 'YES'
		else :
			print 'NO' __name__ == '__main__' __name__ '__main__' N = int(raw_input()) N int(raw_input()) int raw_input() raw_input for i in range(0,N):

		a, b, c = raw_input().split()
		triangle = [int(a),int(b),int(c)]
		triangle.sort()
		
		if(triangle[2]**2 == triangle[0]**2 + triangle[1]**2):
			print 'YES'
		else :
			print 'NO' i range(0,N) range 0 N a, b, c = raw_input().split() a raw_input().split() ().split () raw_input split b c triangle = [int(a),int(b),int(c)] triangle [int(a),int(b),int(c)] int(a) int a int(b) int b int(c) int c triangle.sort() triangle.sort triangle sort if(triangle[2]**2 == triangle[0]**2 + triangle[1]**2):
			print 'YES'
		else :
			print 'NO' triangle[2]**2 == triangle[0]**2 + triangle[1]**2 triangle[2]**2 triangle[2] triangle 2 2 triangle[0]**2 + triangle[1]**2 triangle[0]**2 triangle[0] triangle 0 2 triangle[1]**2 triangle[1] triangle 1 2 print print a, b, c = raw_input().split() raw_input().split() a c = raw_input().split() raw_input().split() c triangle = [int(a),int(b),int(c)] [int(a),int(b),int(c)] triangle N = int(raw_input()) int(raw_input()) N b, c = raw_input().split() raw_input().split() b
# -*- coding:utf-8 -*-

if __name__ == '__main__':

	N = int(raw_input())

	for i in range(0,N):

		a, b, c = raw_input().split()
		triangle = [int(a),int(b),int(c)]
		triangle.sort()
		
		if(triangle[2]**2 == triangle[0]**2 + triangle[1]**2):
			print 'YES'
		else :
			print 'NO'