N = int(input())
ary=[]
ans=[]
for i in range(N):
    ary.append(list(map(int,(input().split()))))
    if 2 * max(ary[-1]) ** 2 == sum(ary[-1][j] ** 2 for j in range(3)):
        ans.append('YES')
    else:
        ans.append('NO')
print('\n'.join(ans)) N = int(input()) N int(input()) int input() input ary=[] ary [] ans=[] ans [] for i in range(N):
    ary.append(list(map(int,(input().split()))))
    if 2 * max(ary[-1]) ** 2 == sum(ary[-1][j] ** 2 for j in range(3)):
        ans.append('YES')
    else:
        ans.append('NO') i range(N) range N ary.append(list(map(int,(input().split())))) ary.append ary append list(map(int,(input().split()))) list map(int,(input().split())) map int input().split() ().split () input split if 2 * max(ary[-1]) ** 2 == sum(ary[-1][j] ** 2 for j in range(3)):
        ans.append('YES')
    else:
        ans.append('NO') 2 * max(ary[-1]) ** 2 == sum(ary[-1][j] ** 2 for j in range(3)) 2 * max(ary[-1]) ** 2 2 max(ary[-1]) ** 2 max(ary[-1]) max ary[-1] ary -1 2 sum(ary[-1][j] ** 2 for j in range(3)) sum ary[-1][j] ** 2 ary[-1][j] [-1] ary -1 j 2 ans.append('YES') ans.append ans append 'YES' ans.append('NO') ans.append ans append 'NO' print('\n'.join(ans)) print '\n'.join(ans) '\n'.join '\n' join ans N = int(input()) int(input()) N ary=[] [] ary ans=[] [] ans
N = int(input())
ary=[]
ans=[]
for i in range(N):
    ary.append(list(map(int,(input().split()))))
    if 2 * max(ary[-1]) ** 2 == sum(ary[-1][j] ** 2 for j in range(3)):
        ans.append('YES')
    else:
        ans.append('NO')
print('\n'.join(ans))