#coding:utf-8

i = input()
q = []
for n in range(i):
    l = map(int, raw_input(). split())
    a = min(l)
    l.remove(min(l))
    b = min(l)
    c = max(l)
    if a ** 2 + b ** 2 == c ** 2:
        q.append("YES")
    else:
        q.append("NO")

for s in xrange(len(q)):
    print(q[0])
    q.pop(0) i = input() i input() input q = [] q [] for n in range(i):
    l = map(int, raw_input(). split())
    a = min(l)
    l.remove(min(l))
    b = min(l)
    c = max(l)
    if a ** 2 + b ** 2 == c ** 2:
        q.append("YES")
    else:
        q.append("NO") n range(i) range i l = map(int, raw_input(). split()) l map(int, raw_input(). split()) map int raw_input(). split() (). split () raw_input split a = min(l) a min(l) min l l.remove(min(l)) l.remove l remove min(l) min l b = min(l) b min(l) min l c = max(l) c max(l) max l if a ** 2 + b ** 2 == c ** 2:
        q.append("YES")
    else:
        q.append("NO") a ** 2 + b ** 2 == c ** 2 a ** 2 + b ** 2 a ** 2 a 2 b ** 2 b 2 c ** 2 c 2 q.append("YES") q.append q append "YES" q.append("NO") q.append q append "NO" for s in xrange(len(q)):
    print(q[0])
    q.pop(0) s xrange(len(q)) xrange len(q) len q print(q[0]) print q[0] q 0 q.pop(0) q.pop q pop 0 i = input() input() i l = map(int, raw_input(). split()) map(int, raw_input(). split()) l q = [] [] q b = min(l) min(l) b c = max(l) max(l) c a = min(l) min(l) a
#coding:utf-8

i = input()
q = []
for n in range(i):
    l = map(int, raw_input(). split())
    a = min(l)
    l.remove(min(l))
    b = min(l)
    c = max(l)
    if a ** 2 + b ** 2 == c ** 2:
        q.append("YES")
    else:
        q.append("NO")

for s in xrange(len(q)):
    print(q[0])
    q.pop(0)