N = int(input())
for l in range(N):
    a = [int(i) for i in input().split()]
    a.sort()
    if a[0]*a[0] + a[1]*a[1] == a[2]*a[2]:
        print("YES")
    else:
        print("NO") N = int(input()) N int(input()) int input() input for l in range(N):
    a = [int(i) for i in input().split()]
    a.sort()
    if a[0]*a[0] + a[1]*a[1] == a[2]*a[2]:
        print("YES")
    else:
        print("NO") l 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 a = [int(i) for i in input().split()] a [int(i) for i in input().split()] a.sort() a.sort a sort if a[0]*a[0] + a[1]*a[1] == a[2]*a[2]:
        print("YES")
    else:
        print("NO") a[0]*a[0] + a[1]*a[1] == a[2]*a[2] a[0]*a[0] + a[1]*a[1] a[0]*a[0] a[0] a 0 a[0] a 0 a[1]*a[1] a[1] a 1 a[1] a 1 a[2]*a[2] a[2] a 2 a[2] a 2 print("YES") print "YES" print("NO") print "NO" a = [int(i) for i in input().split()] [int(i) for i in input().split()] a N = int(input()) int(input()) N
N = int(input())
for l in range(N):
    a = [int(i) for i in input().split()]
    a.sort()
    if a[0]*a[0] + a[1]*a[1] == a[2]*a[2]:
        print("YES")
    else:
        print("NO")
