N = int(input())

for i in range(N):
	sides = list(map(int, input().split()))
	longestSide = max(sides)
	sides.remove(longestSide)
	if (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2):
		print('YES')
	else:
		print('NO') N = int(input()) N int(input()) int input() input for i in range(N):
	sides = list(map(int, input().split()))
	longestSide = max(sides)
	sides.remove(longestSide)
	if (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2):
		print('YES')
	else:
		print('NO') i range(N) range N sides = list(map(int, input().split())) sides list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split longestSide = max(sides) longestSide max(sides) max sides sides.remove(longestSide) sides.remove sides remove longestSide if (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2):
		print('YES')
	else:
		print('NO') (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2) longestSide ** 2 longestSide 2 sides[0] ** 2 + sides[1] ** 2 sides[0] ** 2 sides[0] sides 0 2 sides[1] ** 2 sides[1] sides 1 2 print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N longestSide = max(sides) max(sides) longestSide sides = list(map(int, input().split())) list(map(int, input().split())) sides
N = int(input())

for i in range(N):
	sides = list(map(int, input().split()))
	longestSide = max(sides)
	sides.remove(longestSide)
	if (longestSide ** 2) == (sides[0] ** 2 + sides[1] ** 2):
		print('YES')
	else:
		print('NO')