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