data = []
n = int(input())
for i in range(n):
    data.append(list(map(int, input().split())))
    data[i] = sorted(data[i])[::-1]

for j in range(n):
    if data[j][0]**2 == data[j][1]**2 + data[j][2]**2:
        print('YES')
    else:
        print('NO') data = [] data [] n = int(input()) n int(input()) int input() input for i in range(n):
    data.append(list(map(int, input().split())))
    data[i] = sorted(data[i])[::-1] i range(n) range n data.append(list(map(int, input().split()))) data.append data append list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split data[i] = sorted(data[i])[::-1] data[i] data i sorted(data[i])[::-1] (data[i]) sorted data[i] data i ::-1 -1 for j in range(n):
    if data[j][0]**2 == data[j][1]**2 + data[j][2]**2:
        print('YES')
    else:
        print('NO') j range(n) range n if data[j][0]**2 == data[j][1]**2 + data[j][2]**2:
        print('YES')
    else:
        print('NO') data[j][0]**2 == data[j][1]**2 + data[j][2]**2 data[j][0]**2 data[j][0] [j] data j 0 2 data[j][1]**2 + data[j][2]**2 data[j][1]**2 data[j][1] [j] data j 1 2 data[j][2]**2 data[j][2] [j] data j 2 2 print('YES') print 'YES' print('NO') print 'NO' data = [] [] data n = int(input()) int(input()) n
data = []
n = int(input())
for i in range(n):
    data.append(list(map(int, input().split())))
    data[i] = sorted(data[i])[::-1]

for j in range(n):
    if data[j][0]**2 == data[j][1]**2 + data[j][2]**2:
        print('YES')
    else:
        print('NO')