n = int(input())

for i in range(n):
    a,b,c = list(map(int, input().split()))
    M = max([a,b,c])
    result = False
    if a == M:
        result = (a * a == b * b + c * c)
    elif b == M:
        result = (b * b == a * a + c * c)
    elif c == M:
        result = (c * c == a * a + b * b)
    if result:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input for i in range(n):
    a,b,c = list(map(int, input().split()))
    M = max([a,b,c])
    result = False
    if a == M:
        result = (a * a == b * b + c * c)
    elif b == M:
        result = (b * b == a * a + c * c)
    elif c == M:
        result = (c * c == a * a + b * b)
    if result:
        print("YES")
    else:
        print("NO") i range(n) range n a,b,c = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b c M = max([a,b,c]) M max([a,b,c]) max [a,b,c] a b c result = False result False if a == M:
        result = (a * a == b * b + c * c)
    elif b == M:
        result = (b * b == a * a + c * c)
    elif c == M:
        result = (c * c == a * a + b * b)
     a == M a M result = (a * a == b * b + c * c) result a * a == b * b + c * c a * a a a b * b + c * c b * b b b c * c c c elif b == M:
        result = (b * b == a * a + c * c)
     b == M b M result = (b * b == a * a + c * c) result b * b == a * a + c * c b * b b b a * a + c * c a * a a a c * c c c elif c == M:
        result = (c * c == a * a + b * b)
     c == M c M result = (c * c == a * a + b * b) result c * c == a * a + b * b c * c c c a * a + b * b a * a a a b * b b b if result:
        print("YES")
    else:
        print("NO") result print("YES") print "YES" print("NO") print "NO" b,c = list(map(int, input().split())) list(map(int, input().split())) b result = False False result result = (a * a == b * b + c * c) a * a == b * b + c * c result M = max([a,b,c]) max([a,b,c]) M result = (b * b == a * a + c * c) b * b == a * a + c * c result n = int(input()) int(input()) n a,b,c = list(map(int, input().split())) list(map(int, input().split())) a c = list(map(int, input().split())) list(map(int, input().split())) c result = (c * c == a * a + b * b) c * c == a * a + b * b result
n = int(input())

for i in range(n):
    a,b,c = list(map(int, input().split()))
    M = max([a,b,c])
    result = False
    if a == M:
        result = (a * a == b * b + c * c)
    elif b == M:
        result = (b * b == a * a + c * c)
    elif c == M:
        result = (c * c == a * a + b * b)
    if result:
        print("YES")
    else:
        print("NO")