# Aizu Problem 0003: Is it a Right Triangle?
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


N = int(input())
for __ in range(N):
    a, b, c = sorted([int(_) for _ in input().split()])
    print("YES" if c**2 == a**2 + b**2 else "NO") import sys, math, os sys math os PYDEV = os.environ.get('PYDEV') PYDEV os.environ.get('PYDEV') os.environ.get os.environ os environ get 'PYDEV' if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt") PYDEV=="True" PYDEV "True" sys.stdin = open("sample-input.txt", "rt") sys.stdin sys stdin open("sample-input.txt", "rt") open "sample-input.txt" "rt" N = int(input()) N int(input()) int input() input for __ in range(N):
    a, b, c = sorted([int(_) for _ in input().split()])
    print("YES" if c**2 == a**2 + b**2 else "NO") __ range(N) range N int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ a, b, c = sorted([int(_) for _ in input().split()]) a sorted([int(_) for _ in input().split()]) sorted [int(_) for _ in input().split()] b c print("YES" if c**2 == a**2 + b**2 else "NO") print "YES" if c**2 == a**2 + b**2 else "NO" c**2 == a**2 + b**2 c**2 c 2 a**2 + b**2 a**2 a 2 b**2 b 2 "YES" "NO" N = int(input()) int(input()) N a, b, c = sorted([int(_) for _ in input().split()]) sorted([int(_) for _ in input().split()]) a c = sorted([int(_) for _ in input().split()]) sorted([int(_) for _ in input().split()]) c PYDEV = os.environ.get('PYDEV') os.environ.get('PYDEV') PYDEV b, c = sorted([int(_) for _ in input().split()]) sorted([int(_) for _ in input().split()]) b
# Aizu Problem 0003: Is it a Right Triangle?
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


N = int(input())
for __ in range(N):
    a, b, c = sorted([int(_) for _ in input().split()])
    print("YES" if c**2 == a**2 + b**2 else "NO")