import sys

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

input()
for a,b,c in map(lambda x: sorted(map(int,x.split())),sys.stdin.readlines()):
    if a**2 + b**2 == c**2:
        print("YES")
    else:
        print("NO")