import math
import itertools

for i in range(int(input())):
    a, b, c = sorted(map(int, input().split()))
    print('YES' if a*a+b*b==c*c else 'NO') import math math import itertools itertools for i in range(int(input())):
    a, b, c = sorted(map(int, input().split()))
    print('YES' if a*a+b*b==c*c else 'NO') i range(int(input())) range int(input()) int input() input a, b, c = sorted(map(int, input().split())) a sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split b c print('YES' if a*a+b*b==c*c else 'NO') print 'YES' if a*a+b*b==c*c else 'NO' a*a+b*b==c*c a*a+b*b a*a a a b*b b b c*c c c 'YES' 'NO' a, b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) a c = sorted(map(int, input().split())) sorted(map(int, input().split())) c b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) b
import math
import itertools

for i in range(int(input())):
    a, b, c = sorted(map(int, input().split()))
    print('YES' if a*a+b*b==c*c else 'NO')