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