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