
N = int(input())
A = []
B = []
C = []#最長辺
for i in range(N):
    a, b, c = map(int, input().split())
    if(a > b):#a,bを昇順に並び替える
        t = a
        a = b
        b = t
    if(b > c):#b,cを昇順に並び替える
        t = b
        b = c
        c = t
    A.append(a)
    B.append(b)
    C.append(c)
for i in range(N):
    if(A[i]**2 + B[i]**2 == C[i]**2):
        print("YES")
    else:
        print("NO")
 N = int(input()) N int(input()) int input() input A = [] A [] B = [] B [] C = [] C [] for i in range(N):
    a, b, c = map(int, input().split())
    if(a > b):#a,bを昇順に並び替える
        t = a
        a = b
        b = t
    if(b > c):#b,cを昇順に並び替える
        t = b
        b = c
        c = t
    A.append(a)
    B.append(b)
    C.append(c) i range(N) range N a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c if(a > b):#a,bを昇順に並び替える
        t = a
        a = b
        b = t
     a > b a b t = a t a a = b a b b = t b t if(b > c):#b,cを昇順に並び替える
        t = b
        b = c
        c = t
     b > c b c t = b t b b = c b c c = t c t A.append(a) A.append A append a B.append(b) B.append B append b C.append(c) C.append C append c for i in range(N):
    if(A[i]**2 + B[i]**2 == C[i]**2):
        print("YES")
    else:
        print("NO") i range(N) range N if(A[i]**2 + B[i]**2 == C[i]**2):
        print("YES")
    else:
        print("NO") A[i]**2 + B[i]**2 == C[i]**2 A[i]**2 + B[i]**2 A[i]**2 A[i] A i 2 B[i]**2 B[i] B i 2 C[i]**2 C[i] C i 2 print("YES") print "YES" print("NO") print "NO" a, b, c = map(int, input().split()) map(int, input().split()) a t = a a t c = t t c b = t t b t = b b t N = int(input()) int(input()) N c = map(int, input().split()) map(int, input().split()) c a = b b a b, c = map(int, input().split()) map(int, input().split()) b A = [] [] A B = [] [] B C = [] [] C b = c c b

N = int(input())
A = []
B = []
C = []#最長辺
for i in range(N):
    a, b, c = map(int, input().split())
    if(a > b):#a,bを昇順に並び替える
        t = a
        a = b
        b = t
    if(b > c):#b,cを昇順に並び替える
        t = b
        b = c
        c = t
    A.append(a)
    B.append(b)
    C.append(c)
for i in range(N):
    if(A[i]**2 + B[i]**2 == C[i]**2):
        print("YES")
    else:
        print("NO")

