n=int(input())
a=[]
c=[]
for i in range(n):
    a.append([])
    for j in range(3):
        a[i].append([])
for i in range(n):
    #for j in range(3):
    a[i][0], a[i][1], a[i][2]=map(int, input().split())
    a[i].sort()
    if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
        k="YES"
        c.append(k)
    else:
        k="NO"
        c.append(k)
for i in range(n):
    print(c[i]) n=int(input()) n int(input()) int input() input a=[] a [] c=[] c [] for i in range(n):
    a.append([])
    for j in range(3):
        a[i].append([]) i range(n) range n a.append([]) a.append a append [] for j in range(3):
        a[i].append([]) j range(3) range 3 a[i].append([]) [i].append [i] a i append [] for i in range(n):
    #for j in range(3):
    a[i][0], a[i][1], a[i][2]=map(int, input().split())
    a[i].sort()
    if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
        k="YES"
        c.append(k)
    else:
        k="NO"
        c.append(k) i range(n) range n a[i][0], a[i][1], a[i][2]=map(int, input().split()) a[i][0] [i] a i 0 map(int, input().split()) map int input().split() ().split () input split a[i][1] [i] a i 1 a[i][2] [i] a i 2 a[i].sort() [i].sort [i] a i sort if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
        k="YES"
        c.append(k)
    else:
        k="NO"
        c.append(k) ((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2]) (a[i][0]*a[i][0])+(a[i][1]*a[i][1]) a[i][0]*a[i][0] a[i][0] [i] a i 0 a[i][0] [i] a i 0 a[i][1]*a[i][1] a[i][1] [i] a i 1 a[i][1] [i] a i 1 a[i][2]*a[i][2] a[i][2] [i] a i 2 a[i][2] [i] a i 2 k="YES" k "YES" c.append(k) c.append c append k k="NO" k "NO" c.append(k) c.append c append k for i in range(n):
    print(c[i]) i range(n) range n print(c[i]) print c[i] c i a=[] [] a n=int(input()) int(input()) n k="NO" "NO" k c=[] [] c k="YES" "YES" k
n=int(input())
a=[]
c=[]
for i in range(n):
    a.append([])
    for j in range(3):
        a[i].append([])
for i in range(n):
    #for j in range(3):
    a[i][0], a[i][1], a[i][2]=map(int, input().split())
    a[i].sort()
    if(((a[i][0]*a[i][0])+(a[i][1]*a[i][1]))==(a[i][2]*a[i][2])):
        k="YES"
        c.append(k)
    else:
        k="NO"
        c.append(k)
for i in range(n):
    print(c[i])