n = input()
for i in range(n):
    l = map(int, raw_input().split())
    l.sort()
    if(l[0] * l[0] + l[1] * l[1] == l[2] * l[2]):
        print("YES")
    else:
        print("NO") n = input() n input() input for i in range(n):
    l = map(int, raw_input().split())
    l.sort()
    if(l[0] * l[0] + l[1] * l[1] == l[2] * l[2]):
        print("YES")
    else:
        print("NO") i range(n) range n l = map(int, raw_input().split()) l map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split l.sort() l.sort l sort if(l[0] * l[0] + l[1] * l[1] == l[2] * l[2]):
        print("YES")
    else:
        print("NO") l[0] * l[0] + l[1] * l[1] == l[2] * l[2] l[0] * l[0] + l[1] * l[1] l[0] * l[0] l[0] l 0 l[0] l 0 l[1] * l[1] l[1] l 1 l[1] l 1 l[2] * l[2] l[2] l 2 l[2] l 2 print("YES") print "YES" print("NO") print "NO" l = map(int, raw_input().split()) map(int, raw_input().split()) l n = input() input() n
n = input()
for i in range(n):
    l = map(int, raw_input().split())
    l.sort()
    if(l[0] * l[0] + l[1] * l[1] == l[2] * l[2]):
        print("YES")
    else:
        print("NO")