n = int(input())
for i in range(n):
	li  = sorted(map(int, input().split()))
	if(pow(li[0], 2) + pow (li[1], 2) == pow(li[2], 2)):
		print('YES')
	else:
		print('NO') n = int(input()) n int(input()) int input() input for i in range(n):
	li  = sorted(map(int, input().split()))
	if(pow(li[0], 2) + pow (li[1], 2) == pow(li[2], 2)):
		print('YES')
	else:
		print('NO') i range(n) range n li  = sorted(map(int, input().split())) li sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split if(pow(li[0], 2) + pow (li[1], 2) == pow(li[2], 2)):
		print('YES')
	else:
		print('NO') pow(li[0], 2) + pow (li[1], 2) == pow(li[2], 2) pow(li[0], 2) + pow (li[1], 2) pow(li[0], 2) pow li[0] li 0 2 pow (li[1], 2) pow li[1] li 1 2 pow(li[2], 2) pow li[2] li 2 2 print('YES') print 'YES' print('NO') print 'NO' n = int(input()) int(input()) n li  = sorted(map(int, input().split())) sorted(map(int, input().split())) li
n = int(input())
for i in range(n):
	li  = sorted(map(int, input().split()))
	if(pow(li[0], 2) + pow (li[1], 2) == pow(li[2], 2)):
		print('YES')
	else:
		print('NO')
