N = int(eval(input()))

for i in range(N):

    sides = list(map(int, input().split()))

    sides.sort()

    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:

        print('YES')

    else:

        print('NO')
N = int(eval(input()))

for i in range(N):

    a, b, c = list(map(int, input().split()))

    a2 = a ** 2

    b2 = b ** 2

    c2 = c ** 2

    if a2 + b2 == c2 or a2 + c2 == b2 or b2 + c2 == a2:

        print('YES')

    else:

        print('NO')
N = int(eval(input()))
for i in range(N):
    sides = list(map(int, input().split()))
    sides.sort()
    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:
        print("YES")
    else:
        print("NO")

N = int(eval(input()))
for i in range(N):
    a, b, c = list(map(int, input().split()))
    a2 = a**2
    b2 = b**2
    c2 = c**2
    if a2 + b2 == c2 or a2 + c2 == b2 or b2 + c2 == a2:
        print("YES")
    else:
        print("NO")

-    sides = list(map(int, input().split())) -    sides.sort() -    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2: +    a, b, c = list(map(int, input().split())) +    a2 = a**2 +    b2 = b**2 +    c2 = c**2 +    if a2 + b2 == c2 or a2 + c2 == b2 or b2 + c2 == a2: