n = int(input())
s = ""
for i in range(n):
  l = list(map(lambda x:x*x,map(int, input().split())))
  l.sort()
  if l[0] + l[1] == l[2]:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="") n = int(input()) n int(input()) int input() input s = "" s "" for i in range(n):
  l = list(map(lambda x:x*x,map(int, input().split())))
  l.sort()
  if l[0] + l[1] == l[2]:
      s += "YES\n"
  else:
      s += "NO\n" i range(n) range n l = list(map(lambda x:x*x,map(int, input().split()))) l list(map(lambda x:x*x,map(int, input().split()))) list map(lambda x:x*x,map(int, input().split())) map lambda x:x*x x*x x x x map(int, input().split()) map int input().split() ().split () input split l.sort() l.sort l sort if l[0] + l[1] == l[2]:
      s += "YES\n"
  else:
      s += "NO\n" l[0] + l[1] == l[2] l[0] + l[1] l[0] l 0 l[1] l 1 l[2] l 2 s += "YES\n" s "YES\n" s += "NO\n" s "NO\n" print(s,end="") print s end="" end "" s += "YES\n" "YES\n" s n = int(input()) int(input()) n s += "NO\n" "NO\n" s s = "" "" s l = list(map(lambda x:x*x,map(int, input().split()))) list(map(lambda x:x*x,map(int, input().split()))) l
n = int(input())
s = ""
for i in range(n):
  l = list(map(lambda x:x*x,map(int, input().split())))
  l.sort()
  if l[0] + l[1] == l[2]:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="")