n = int(input())
while n>0:
  l = [int(i) for i in input().split()]
  l.sort()
  if l[0]**2 + l[1] ** 2 == l[2] ** 2:
    print('YES')
  else:
    print('NO')
  n -= 1 n = int(input()) n int(input()) int input() input while n>0:
  l = [int(i) for i in input().split()]
  l.sort()
  if l[0]**2 + l[1] ** 2 == l[2] ** 2:
    print('YES')
  else:
    print('NO')
  n -= 1 n>0 n 0 int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i l = [int(i) for i in input().split()] l [int(i) for i in input().split()] l.sort() l.sort l sort if l[0]**2 + l[1] ** 2 == l[2] ** 2:
    print('YES')
  else:
    print('NO')
   l[0]**2 + l[1] ** 2 == l[2] ** 2 l[0]**2 + l[1] ** 2 l[0]**2 l[0] l 0 2 l[1] ** 2 l[1] l 1 2 l[2] ** 2 l[2] l 2 2 print('YES') print 'YES' print('NO') print 'NO' n -= 1 n 1 n = int(input()) int(input()) n l = [int(i) for i in input().split()] [int(i) for i in input().split()] l n -= 1 1 n
n = int(input())
while n>0:
  l = [int(i) for i in input().split()]
  l.sort()
  if l[0]**2 + l[1] ** 2 == l[2] ** 2:
    print('YES')
  else:
    print('NO')
  n -= 1