def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO")

n=int(input())
for i in range(n):
    lines=list(map(int, input().split()))
    lines.sort()
    ifTriangle(lines[0], lines[1], lines[2]) def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO") ifTriangle if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO") (a**2) + (b**2) == c**2 (a**2) + (b**2) a**2 a 2 b**2 b 2 c**2 c 2 a a b b c c n=int(input()) n int(input()) int input() input for i in range(n):
    lines=list(map(int, input().split()))
    lines.sort()
    ifTriangle(lines[0], lines[1], lines[2]) i range(n) range n lines=list(map(int, input().split())) lines list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split lines.sort() lines.sort lines sort ifTriangle(lines[0], lines[1], lines[2]) ifTriangle lines[0] lines 0 lines[1] lines 1 lines[2] lines 2 def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO") def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO") ifTriangle n=int(input()) int(input()) n lines=list(map(int, input().split())) list(map(int, input().split())) lines
def ifTriangle(a, b, c):
    if (a**2) + (b**2) == c**2: print("YES")
    else: print("NO")

n=int(input())
for i in range(n):
    lines=list(map(int, input().split()))
    lines.sort()
    ifTriangle(lines[0], lines[1], lines[2])