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