# -*-coding:utf-8

lineNum = int(input())

for i in range(lineNum):
    line = input()
    tokens = list(map(int, line.strip().split()))

    tokens.sort()

    a, b, c = tokens[0], tokens[1], tokens[2]

    if pow(a,2)+pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO') lineNum = int(input()) lineNum int(input()) int input() input for i in range(lineNum):
    line = input()
    tokens = list(map(int, line.strip().split()))

    tokens.sort()

    a, b, c = tokens[0], tokens[1], tokens[2]

    if pow(a,2)+pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO') i range(lineNum) range lineNum line = input() line input() input tokens = list(map(int, line.strip().split())) tokens list(map(int, line.strip().split())) list map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split tokens.sort() tokens.sort tokens sort a, b, c = tokens[0], tokens[1], tokens[2] a tokens[0] tokens 0 b tokens[1] tokens 1 c tokens[2] tokens 2 if pow(a,2)+pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO') pow(a,2)+pow(b,2) == pow(c,2) pow(a,2)+pow(b,2) pow(a,2) pow a 2 pow(b,2) pow b 2 pow(c,2) pow c 2 print('YES') print 'YES' print('NO') print 'NO' line = input() input() line c = tokens[0], tokens[1], tokens[2] tokens[2] c a, b, c = tokens[0], tokens[1], tokens[2] tokens[0] a tokens = list(map(int, line.strip().split())) list(map(int, line.strip().split())) tokens b, c = tokens[0], tokens[1], tokens[2] tokens[1] b lineNum = int(input()) int(input()) lineNum
# -*-coding:utf-8

lineNum = int(input())

for i in range(lineNum):
    line = input()
    tokens = list(map(int, line.strip().split()))

    tokens.sort()

    a, b, c = tokens[0], tokens[1], tokens[2]

    if pow(a,2)+pow(b,2) == pow(c,2):
        print('YES')
    else:
        print('NO')