import sys

n = int(input())
l = sys.stdin.readlines()
s = ""
for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="") import sys sys n = int(input()) n int(input()) int input() input l = sys.stdin.readlines() l sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines s = "" s "" for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n" i l x, y, z = sorted(map(lambda x:x*x,map(int, i.split()))) x sorted(map(lambda x:x*x,map(int, i.split()))) sorted map(lambda x:x*x,map(int, i.split())) map lambda x:x*x x*x x x x map(int, i.split()) map int i.split() i.split i split y z if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n" x + y == z x + y x y z s += "YES\n" s "YES\n" s += "NO\n" s "NO\n" print(s,end="") print s end="" end "" s += "NO\n" "NO\n" s x, y, z = sorted(map(lambda x:x*x,map(int, i.split()))) sorted(map(lambda x:x*x,map(int, i.split()))) x z = sorted(map(lambda x:x*x,map(int, i.split()))) sorted(map(lambda x:x*x,map(int, i.split()))) z l = sys.stdin.readlines() sys.stdin.readlines() l s = "" "" s s += "YES\n" "YES\n" s n = int(input()) int(input()) n y, z = sorted(map(lambda x:x*x,map(int, i.split()))) sorted(map(lambda x:x*x,map(int, i.split()))) y
import sys

n = int(input())
l = sys.stdin.readlines()
s = ""
for i in l:
  x, y, z = sorted(map(lambda x:x*x,map(int, i.split())))
  if x + y == z:
      s += "YES\n"
  else:
      s += "NO\n"

print(s,end="")