s = int(input())

for x in range(s):
    r = sorted(list(map(int, input().split())))
    if r[2] ** 2 == r[0] ** 2 + r[1] ** 2:
        print('YES')
    else:
        print('NO')
 s = int(input()) s int(input()) int input() input for x in range(s):
    r = sorted(list(map(int, input().split())))
    if r[2] ** 2 == r[0] ** 2 + r[1] ** 2:
        print('YES')
    else:
        print('NO') x range(s) range s r = sorted(list(map(int, input().split()))) r sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if r[2] ** 2 == r[0] ** 2 + r[1] ** 2:
        print('YES')
    else:
        print('NO') r[2] ** 2 == r[0] ** 2 + r[1] ** 2 r[2] ** 2 r[2] r 2 2 r[0] ** 2 + r[1] ** 2 r[0] ** 2 r[0] r 0 2 r[1] ** 2 r[1] r 1 2 print('YES') print 'YES' print('NO') print 'NO' r = sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) r s = int(input()) int(input()) s
s = int(input())

for x in range(s):
    r = sorted(list(map(int, input().split())))
    if r[2] ** 2 == r[0] ** 2 + r[1] ** 2:
        print('YES')
    else:
        print('NO')

