import sys
n = int(sys.stdin.readline())
for i in range(n):
    sides = [int(k) for k in sys.stdin.readline().split()]
    sides.sort()
    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:
        print("YES")
    else:
        print("NO") import sys sys n = int(sys.stdin.readline()) n int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline for i in range(n):
    sides = [int(k) for k in sys.stdin.readline().split()]
    sides.sort()
    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:
        print("YES")
    else:
        print("NO") i range(n) range n int(k) for k in sys.stdin.readline().split() for k in sys.stdin.readline().split() k sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split for k in sys.stdin.readline().split() int(k) int k sides = [int(k) for k in sys.stdin.readline().split()] sides [int(k) for k in sys.stdin.readline().split()] sides.sort() sides.sort sides sort if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:
        print("YES")
    else:
        print("NO") sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2 sides[0] ** 2 + sides[1] ** 2 sides[0] ** 2 sides[0] sides 0 2 sides[1] ** 2 sides[1] sides 1 2 sides[2] ** 2 sides[2] sides 2 2 print("YES") print "YES" print("NO") print "NO" sides = [int(k) for k in sys.stdin.readline().split()] [int(k) for k in sys.stdin.readline().split()] sides n = int(sys.stdin.readline()) int(sys.stdin.readline()) n
import sys
n = int(sys.stdin.readline())
for i in range(n):
    sides = [int(k) for k in sys.stdin.readline().split()]
    sides.sort()
    if sides[0] ** 2 + sides[1] ** 2 == sides[2] ** 2:
        print("YES")
    else:
        print("NO")