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