for _ in range(int(input())):
  a, b, c = sorted(map(int, input().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO") for _ in range(int(input())):
  a, b, c = sorted(map(int, input().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO") _ range(int(input())) range int(input()) int input() input a, b, c = sorted(map(int, input().split())) a sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input 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" c = sorted(map(int, input().split())) sorted(map(int, input().split())) c a, b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) a b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) b
for _ in range(int(input())):
  a, b, c = sorted(map(int, input().split()))
  if a * a + b*b == c* c:
    print("YES")
  else:
    print("NO")