import sys
input()
for e in sys.stdin:
 a,b,c=sorted(map(int,e.split()))
 print(['NO','YES'][a*a+b*b==c*c]) import sys sys input() input for e in sys.stdin:
 a,b,c=sorted(map(int,e.split()))
 print(['NO','YES'][a*a+b*b==c*c]) 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 print(['NO','YES'][a*a+b*b==c*c]) print ['NO','YES'][a*a+b*b==c*c] ['NO','YES'] 'NO' 'YES' a*a+b*b==c*c a*a+b*b a*a a a b*b b b c*c c c b,c=sorted(map(int,e.split())) sorted(map(int,e.split())) b 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
import sys
input()
for e in sys.stdin:
 a,b,c=sorted(map(int,e.split()))
 print(['NO','YES'][a*a+b*b==c*c])
