# -*- config: utf-8 -*-
if __name__ == '__main__':
	for i in range(int(raw_input())):
		nums = map(lambda x:x**2,map(int,raw_input().split()))
		nums.sort()
		if nums[0]+nums[1] == nums[2]:
			print "YES"
		else :
			print "NO" if __name__ == '__main__':
	for i in range(int(raw_input())):
		nums = map(lambda x:x**2,map(int,raw_input().split()))
		nums.sort()
		if nums[0]+nums[1] == nums[2]:
			print "YES"
		else :
			print "NO" __name__ == '__main__' __name__ '__main__' for i in range(int(raw_input())):
		nums = map(lambda x:x**2,map(int,raw_input().split()))
		nums.sort()
		if nums[0]+nums[1] == nums[2]:
			print "YES"
		else :
			print "NO" i range(int(raw_input())) range int(raw_input()) int raw_input() raw_input nums = map(lambda x:x**2,map(int,raw_input().split())) nums map(lambda x:x**2,map(int,raw_input().split())) map lambda x:x**2 x**2 x 2 x map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split nums.sort() nums.sort nums sort if nums[0]+nums[1] == nums[2]:
			print "YES"
		else :
			print "NO" nums[0]+nums[1] == nums[2] nums[0]+nums[1] nums[0] nums 0 nums[1] nums 1 nums[2] nums 2 print print nums = map(lambda x:x**2,map(int,raw_input().split())) map(lambda x:x**2,map(int,raw_input().split())) nums
# -*- config: utf-8 -*-
if __name__ == '__main__':
	for i in range(int(raw_input())):
		nums = map(lambda x:x**2,map(int,raw_input().split()))
		nums.sort()
		if nums[0]+nums[1] == nums[2]:
			print "YES"
		else :
			print "NO"