n = int(raw_input())
for _ in xrange(n):
  ls = sorted(map(int, raw_input().split()))
  if ls[2]**2 == ls[0]**2+ls[1]**2: print "YES"
  else: print "NO" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for _ in xrange(n):
  ls = sorted(map(int, raw_input().split()))
  if ls[2]**2 == ls[0]**2+ls[1]**2: print "YES"
  else: print "NO" _ xrange(n) xrange n ls = sorted(map(int, raw_input().split())) ls sorted(map(int, raw_input().split())) sorted map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split if ls[2]**2 == ls[0]**2+ls[1]**2: print "YES"
  else: print "NO" ls[2]**2 == ls[0]**2+ls[1]**2 ls[2]**2 ls[2] ls 2 2 ls[0]**2+ls[1]**2 ls[0]**2 ls[0] ls 0 2 ls[1]**2 ls[1] ls 1 2 ls = sorted(map(int, raw_input().split())) sorted(map(int, raw_input().split())) ls n = int(raw_input()) int(raw_input()) n
n = int(raw_input())
for _ in xrange(n):
  ls = sorted(map(int, raw_input().split()))
  if ls[2]**2 == ls[0]**2+ls[1]**2: print "YES"
  else: print "NO"