count = int(input())
for i in range(count):
  a = map(int,raw_input().split())
  a.sort()
  if a[0]**2+a[1]**2  == a[2]**2: print "YES"
  else: print "NO" count = int(input()) count int(input()) int input() input for i in range(count):
  a = map(int,raw_input().split())
  a.sort()
  if a[0]**2+a[1]**2  == a[2]**2: print "YES"
  else: print "NO" i range(count) range count a = map(int,raw_input().split()) a map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split a.sort() a.sort a sort if a[0]**2+a[1]**2  == a[2]**2: print "YES"
  else: print "NO" a[0]**2+a[1]**2  == a[2]**2 a[0]**2+a[1]**2 a[0]**2 a[0] a 0 2 a[1]**2 a[1] a 1 2 a[2]**2 a[2] a 2 2 count = int(input()) int(input()) count a = map(int,raw_input().split()) map(int,raw_input().split()) a
count = int(input())
for i in range(count):
  a = map(int,raw_input().split())
  a.sort()
  if a[0]**2+a[1]**2  == a[2]**2: print "YES"
  else: print "NO"