import sys

n = input()

for _ in range(int(n)):
  a, b, c = sorted(map(int, sys.stdin.readline().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO") import sys sys n = input() n input() input for _ in range(int(n)):
  a, b, c = sorted(map(int, sys.stdin.readline().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO") _ range(int(n)) range int(n) int n a, b, c = sorted(map(int, sys.stdin.readline().split())) a sorted(map(int, sys.stdin.readline().split())) sorted map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split b c if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO") a * a + b*b == c* c a * a + b*b a * a a a b*b b b c* c c c print("YES") print "YES" print("NO") print "NO" b, c = sorted(map(int, sys.stdin.readline().split())) sorted(map(int, sys.stdin.readline().split())) b c = sorted(map(int, sys.stdin.readline().split())) sorted(map(int, sys.stdin.readline().split())) c n = input() input() n a, b, c = sorted(map(int, sys.stdin.readline().split())) sorted(map(int, sys.stdin.readline().split())) a
import sys

n = input()

for _ in range(int(n)):
  a, b, c = sorted(map(int, sys.stdin.readline().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO")