n = int(input())
for _ in range(n):
    edges = sorted([int(i) for i in input().split()])
    if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
        print("YES")
    else:
        print("NO")
 n = int(input()) n int(input()) int input() input for _ in range(n):
    edges = sorted([int(i) for i in input().split()])
    if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
        print("YES")
    else:
        print("NO") _ range(n) range n int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i edges = sorted([int(i) for i in input().split()]) edges sorted([int(i) for i in input().split()]) sorted [int(i) for i in input().split()] if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
        print("YES")
    else:
        print("NO") edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2 edges[0] ** 2 + edges[1] ** 2 edges[0] ** 2 edges[0] edges 0 2 edges[1] ** 2 edges[1] edges 1 2 edges[2] ** 2 edges[2] edges 2 2 print("YES") print "YES" print("NO") print "NO" edges = sorted([int(i) for i in input().split()]) sorted([int(i) for i in input().split()]) edges n = int(input()) int(input()) n
n = int(input())
for _ in range(n):
    edges = sorted([int(i) for i in input().split()])
    if edges[0] ** 2 + edges[1] ** 2 == edges[2] ** 2:
        print("YES")
    else:
        print("NO")

