import sys

input()
print('\n'.join('YES' if t[0] ** 2 + t[1] ** 2 == t[2] ** 2 else 'NO' for t in
                [sorted(map(int, l.split())) for l in sys.stdin])) import sys sys input() input sorted(map(int, l.split())) for l in sys.stdin for l in sys.stdin l sys.stdin sys stdin for l in sys.stdin sorted(map(int, l.split())) sorted map(int, l.split()) map int l.split() l.split l split print('\n'.join('YES' if t[0] ** 2 + t[1] ** 2 == t[2] ** 2 else 'NO' for t in
                [sorted(map(int, l.split())) for l in sys.stdin])) print '\n'.join('YES' if t[0] ** 2 + t[1] ** 2 == t[2] ** 2 else 'NO' for t in
                [sorted(map(int, l.split())) for l in sys.stdin]) '\n'.join '\n' join 'YES' if t[0] ** 2 + t[1] ** 2 == t[2] ** 2 else 'NO' t[0] ** 2 + t[1] ** 2 == t[2] ** 2 t[0] ** 2 + t[1] ** 2 t[0] ** 2 t[0] t 0 2 t[1] ** 2 t[1] t 1 2 t[2] ** 2 t[2] t 2 2 'YES' 'NO'
import sys

input()
print('\n'.join('YES' if t[0] ** 2 + t[1] ** 2 == t[2] ** 2 else 'NO' for t in
                [sorted(map(int, l.split())) for l in sys.stdin]))