N = int(input())
lst = []
for _ in range(N):
    a, b, c = map(int,input().split())
    lst.append([a, b, c])
for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')
    
 N = int(input()) N int(input()) int input() input lst = [] lst [] for _ in range(N):
    a, b, c = map(int,input().split())
    lst.append([a, b, c]) _ range(N) range N a, b, c = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c lst.append([a, b, c]) lst.append lst append [a, b, c] a b c for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')
     i lst i.sort() i.sort i sort if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')
     i[0] ** 2 + i[1] ** 2 == i[2] ** 2 i[0] ** 2 + i[1] ** 2 i[0] ** 2 i[0] i 0 2 i[1] ** 2 i[1] i 1 2 i[2] ** 2 i[2] i 2 2 print('YES') print 'YES' print('NO') print 'NO' N = int(input()) int(input()) N lst = [] [] lst a, b, c = map(int,input().split()) map(int,input().split()) a b, c = map(int,input().split()) map(int,input().split()) b c = map(int,input().split()) map(int,input().split()) c
N = int(input())
lst = []
for _ in range(N):
    a, b, c = map(int,input().split())
    lst.append([a, b, c])
for i in lst:
    i.sort()
    if i[0] ** 2 + i[1] ** 2 == i[2] ** 2:
        print('YES')
    else:
        print('NO')
    

