import sys
input()
for e in sys.stdin:
    a, b, c = sorted(map(int, e.split()))
    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') import sys sys input() input for e in sys.stdin:
    a, b, c = sorted(map(int, e.split()))
    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') e sys.stdin sys stdin a, b, c = sorted(map(int, e.split())) a sorted(map(int, e.split())) sorted map(int, e.split()) map int e.split() e.split e split b c if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') a**2 + b**2 == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 print('YES') print 'YES' print('NO') print 'NO' c = sorted(map(int, e.split())) sorted(map(int, e.split())) c a, b, c = sorted(map(int, e.split())) sorted(map(int, e.split())) a b, c = sorted(map(int, e.split())) sorted(map(int, e.split())) b
import sys
input()
for e in sys.stdin:
    a, b, c = sorted(map(int, e.split()))
    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO')
