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