n = int(input())

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

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