n = int(input())
ans = list()

for i in range(n):
        line = input().split(" ")
        a = float(line[0])
        b = float(line[1])
        c = float(line[2])
        if ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2):
            ans.append("YES")
        else:
            ans.append("NO")

for j in range(n):
        print(ans[j]) n = int(input()) n int(input()) int input() input ans = list() ans list() list for i in range(n):
        line = input().split(" ")
        a = float(line[0])
        b = float(line[1])
        c = float(line[2])
        if ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2):
            ans.append("YES")
        else:
            ans.append("NO") i range(n) range n line = input().split(" ") line input().split(" ") ().split () input split " " a = float(line[0]) a float(line[0]) float line[0] line 0 b = float(line[1]) b float(line[1]) float line[1] line 1 c = float(line[2]) c float(line[2]) float line[2] line 2 if ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2):
            ans.append("YES")
        else:
            ans.append("NO") ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2) ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) (a**2 + b**2) == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 (b**2 + c**2) == a**2 b**2 + c**2 b**2 b 2 c**2 c 2 a**2 a 2 (c**2 + a**2) == b**2 c**2 + a**2 c**2 c 2 a**2 a 2 b**2 b 2 ans.append("YES") ans.append ans append "YES" ans.append("NO") ans.append ans append "NO" for j in range(n):
        print(ans[j]) j range(n) range n print(ans[j]) print ans[j] ans j a = float(line[0]) float(line[0]) a n = int(input()) int(input()) n ans = list() list() ans line = input().split(" ") input().split(" ") line c = float(line[2]) float(line[2]) c b = float(line[1]) float(line[1]) b
n = int(input())
ans = list()

for i in range(n):
        line = input().split(" ")
        a = float(line[0])
        b = float(line[1])
        c = float(line[2])
        if ((a**2 + b**2) == c**2) or ((b**2 + c**2) == a**2) or ((c**2 + a**2) == b**2):
            ans.append("YES")
        else:
            ans.append("NO")

for j in range(n):
        print(ans[j])