n = int(input())
for _ in range(n):
	num = sorted(map(int, input().split()))
	print("YES" if num[2]**2 == num[1]**2 + num[0]**2 else "NO") n = int(input()) n int(input()) int input() input for _ in range(n):
	num = sorted(map(int, input().split()))
	print("YES" if num[2]**2 == num[1]**2 + num[0]**2 else "NO") _ range(n) range n num = sorted(map(int, input().split())) num sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split print("YES" if num[2]**2 == num[1]**2 + num[0]**2 else "NO") print "YES" if num[2]**2 == num[1]**2 + num[0]**2 else "NO" num[2]**2 == num[1]**2 + num[0]**2 num[2]**2 num[2] num 2 2 num[1]**2 + num[0]**2 num[1]**2 num[1] num 1 2 num[0]**2 num[0] num 0 2 "YES" "NO" n = int(input()) int(input()) n num = sorted(map(int, input().split())) sorted(map(int, input().split())) num
n = int(input())
for _ in range(n):
	num = sorted(map(int, input().split()))
	print("YES" if num[2]**2 == num[1]**2 + num[0]**2 else "NO")