import sys

n=int(input())
for i in range(n):
	list=input().split()
	list=[int(j) for j in list]
	list.sort()
	if list[0]*list[0]+list[1]*list[1]==list[2]*list[2]:
		print("YES")
	else:print("NO") import sys sys n=int(input()) n int(input()) int input() input for i in range(n):
	list=input().split()
	list=[int(j) for j in list]
	list.sort()
	if list[0]*list[0]+list[1]*list[1]==list[2]*list[2]:
		print("YES")
	else:print("NO") i range(n) range n list=input().split() list input().split() ().split () input split int(j) for j in list for j in list j list for j in list int(j) int j list=[int(j) for j in list] list [int(j) for j in list] list.sort() list.sort list sort if list[0]*list[0]+list[1]*list[1]==list[2]*list[2]:
		print("YES")
	else:print("NO") list[0]*list[0]+list[1]*list[1]==list[2]*list[2] list[0]*list[0]+list[1]*list[1] list[0]*list[0] list[0] list 0 list[0] list 0 list[1]*list[1] list[1] list 1 list[1] list 1 list[2]*list[2] list[2] list 2 list[2] list 2 print("YES") print "YES" n=int(input()) int(input()) n list=input().split() input().split() list list=[int(j) for j in list] [int(j) for j in list] list
import sys

n=int(input())
for i in range(n):
	list=input().split()
	list=[int(j) for j in list]
	list.sort()
	if list[0]*list[0]+list[1]*list[1]==list[2]*list[2]:
		print("YES")
	else:print("NO")