n = int(raw_input())

while n > 0:
  d = map(int, raw_input().split())
  d.sort()
  a = d[0]
  b = d[1]
  c = d[2]

  if (c*c) == (a*a + b*b):
    print "YES"
  else:
    print "NO"

  n = n-1 n = int(raw_input()) n int(raw_input()) int raw_input() raw_input while n > 0:
  d = map(int, raw_input().split())
  d.sort()
  a = d[0]
  b = d[1]
  c = d[2]

  if (c*c) == (a*a + b*b):
    print "YES"
  else:
    print "NO"

  n = n-1 n > 0 n 0 d = map(int, raw_input().split()) d map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split d.sort() d.sort d sort a = d[0] a d[0] d 0 b = d[1] b d[1] d 1 c = d[2] c d[2] d 2 if (c*c) == (a*a + b*b):
    print "YES"
  else:
    print "NO"

   (c*c) == (a*a + b*b) c*c c c a*a + b*b a*a a a b*b b b print print n = n-1 n n-1 n 1 c = d[2] d[2] c n = n-1 n-1 n d = map(int, raw_input().split()) map(int, raw_input().split()) d n = int(raw_input()) int(raw_input()) n b = d[1] d[1] b a = d[0] d[0] a
n = int(raw_input())

while n > 0:
  d = map(int, raw_input().split())
  d.sort()
  a = d[0]
  b = d[1]
  c = d[2]

  if (c*c) == (a*a + b*b):
    print "YES"
  else:
    print "NO"

  n = n-1