def to_i(e):
  return int(e)

n = int(raw_input().rstrip())

for i in range(n):
  a = sorted(map(to_i, raw_input().rstrip().split(" ")))
  if a[0]*a[0]+a[1]*a[1] == a[2]*a[2]:
    print "YES"
  else:
    print "NO" def to_i(e):
  return int(e) to_i return int(e) int(e) int e e e n = int(raw_input().rstrip()) n int(raw_input().rstrip()) int raw_input().rstrip() ().rstrip () raw_input rstrip for i in range(n):
  a = sorted(map(to_i, raw_input().rstrip().split(" ")))
  if a[0]*a[0]+a[1]*a[1] == a[2]*a[2]:
    print "YES"
  else:
    print "NO" i range(n) range n a = sorted(map(to_i, raw_input().rstrip().split(" "))) a sorted(map(to_i, raw_input().rstrip().split(" "))) sorted map(to_i, raw_input().rstrip().split(" ")) map to_i raw_input().rstrip().split(" ") ().rstrip().split ().rstrip() ().rstrip () raw_input rstrip split " " if a[0]*a[0]+a[1]*a[1] == a[2]*a[2]:
    print "YES"
  else:
    print "NO" a[0]*a[0]+a[1]*a[1] == a[2]*a[2] a[0]*a[0]+a[1]*a[1] a[0]*a[0] a[0] a 0 a[0] a 0 a[1]*a[1] a[1] a 1 a[1] a 1 a[2]*a[2] a[2] a 2 a[2] a 2 print print def to_i(e):
  return int(e) def to_i(e):
  return int(e) to_i n = int(raw_input().rstrip()) int(raw_input().rstrip()) n a = sorted(map(to_i, raw_input().rstrip().split(" "))) sorted(map(to_i, raw_input().rstrip().split(" "))) a
def to_i(e):
  return int(e)

n = int(raw_input().rstrip())

for i in range(n):
  a = sorted(map(to_i, raw_input().rstrip().split(" ")))
  if a[0]*a[0]+a[1]*a[1] == a[2]*a[2]:
    print "YES"
  else:
    print "NO"