for _ in range(int(input())):
    l = list(map(int, input().split()))
    l.sort()
    print('YES' if l[0]**2 + l[1] ** 2 == l[2] ** 2 else 'NO')  for _ in range(int(input())):
    l = list(map(int, input().split()))
    l.sort()
    print('YES' if l[0]**2 + l[1] ** 2 == l[2] ** 2 else 'NO')  _ range(int(input())) range int(input()) int input() input l = list(map(int, input().split())) l list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split l.sort() l.sort l sort print('YES' if l[0]**2 + l[1] ** 2 == l[2] ** 2 else 'NO') print 'YES' if l[0]**2 + l[1] ** 2 == l[2] ** 2 else '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 'YES' 'NO' l = list(map(int, input().split())) list(map(int, input().split())) l
for _ in range(int(input())):
    l = list(map(int, input().split()))
    l.sort()
    print('YES' if l[0]**2 + l[1] ** 2 == l[2] ** 2 else 'NO') 