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