n = int(input())
for i in range(0, n):
    a, b, c = sorted(map(int, input().strip("\n").split(" ")))
    # a,b,c = sorted(input().strip("\n").split(" "))
    #print(a, b, c)
    if c*c - (a*a + b*b) == 0:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input for i in range(0, n):
    a, b, c = sorted(map(int, input().strip("\n").split(" ")))
    # a,b,c = sorted(input().strip("\n").split(" "))
    #print(a, b, c)
    if c*c - (a*a + b*b) == 0:
        print("YES")
    else:
        print("NO") i range(0, n) range 0 n a, b, c = sorted(map(int, input().strip("\n").split(" "))) a sorted(map(int, input().strip("\n").split(" "))) sorted map(int, input().strip("\n").split(" ")) map int input().strip("\n").split(" ") ().strip("\n").split ().strip("\n") ().strip () input strip "\n" split " " b c if c*c - (a*a + b*b) == 0:
        print("YES")
    else:
        print("NO") c*c - (a*a + b*b) == 0 c*c - (a*a + b*b) c*c c c a*a + b*b a*a a a b*b b b 0 print("YES") print "YES" print("NO") print "NO" n = int(input()) int(input()) n a, b, c = sorted(map(int, input().strip("\n").split(" "))) sorted(map(int, input().strip("\n").split(" "))) a b, c = sorted(map(int, input().strip("\n").split(" "))) sorted(map(int, input().strip("\n").split(" "))) b c = sorted(map(int, input().strip("\n").split(" "))) sorted(map(int, input().strip("\n").split(" "))) c
n = int(input())
for i in range(0, n):
    a, b, c = sorted(map(int, input().strip("\n").split(" ")))
    # a,b,c = sorted(input().strip("\n").split(" "))
    #print(a, b, c)
    if c*c - (a*a + b*b) == 0:
        print("YES")
    else:
        print("NO")