N = int(input())
for i in range(N):
    a, b, c = map(int,input().split())
    if (a**2 + b**2 + c**2 - 2*(max(a,b,c)**2)) == 0:
        print('YES')
    else:
        print('NO') N = int(input()) N int(input()) int input() input for i in range(N):
    a, b, c = map(int,input().split())
    if (a**2 + b**2 + c**2 - 2*(max(a,b,c)**2)) == 0:
        print('YES')
    else:
        print('NO') i 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 if (a**2 + b**2 + c**2 - 2*(max(a,b,c)**2)) == 0:
        print('YES')
    else:
        print('NO') (a**2 + b**2 + c**2 - 2*(max(a,b,c)**2)) == 0 a**2 + b**2 + c**2 - 2*(max(a,b,c)**2) a**2 + b**2 + c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 2*(max(a,b,c)**2) 2 max(a,b,c)**2 max(a,b,c) max a b c 2 0 print('YES') print 'YES' print('NO') print 'NO' b, c = map(int,input().split()) map(int,input().split()) b a, b, c = map(int,input().split()) map(int,input().split()) a c = map(int,input().split()) map(int,input().split()) c N = int(input()) int(input()) N
N = int(input())
for i in range(N):
    a, b, c = map(int,input().split())
    if (a**2 + b**2 + c**2 - 2*(max(a,b,c)**2)) == 0:
        print('YES')
    else:
        print('NO')