from __future__ import absolute_import, print_function, unicode_literals
import sys

def judge(a, b, c):
    print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO')

sys.stdin.readline()
for line in sys.stdin:
    judge(*(int(n) ** 2 for n in line.split())) from __future__ import absolute_import, print_function, unicode_literals import sys sys def judge(a, b, c):
    print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO') judge print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO') print 'YES' if (a == b + c or b == c + a or c == a + b) else 'NO' a == b + c or b == c + a or c == a + b a == b + c or b == c + a a == b + c a b + c b c b == c + a b c + a c a c == a + b c a + b a b 'YES' 'NO' a a b b c c sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline for line in sys.stdin:
    judge(*(int(n) ** 2 for n in line.split())) line sys.stdin sys stdin int(n) ** 2 for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) ** 2 int(n) int n 2 judge(*(int(n) ** 2 for n in line.split())) judge *(int(n) ** 2 for n in line.split()) (int(n) ** 2 for n in line.split()) def judge(a, b, c):
    print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO') def judge(a, b, c):
    print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO') judge
from __future__ import absolute_import, print_function, unicode_literals
import sys

def judge(a, b, c):
    print('YES' if (a == b + c or b == c + a or c == a + b) else 'NO')

sys.stdin.readline()
for line in sys.stdin:
    judge(*(int(n) ** 2 for n in line.split()))