#coding: utf-8

n = raw_input()
a = []
for i in range(int(n)):
    l = map(int,raw_input().split())
    a.append(l)

for l in a:
    l = [x * x for x in l]
    l.sort()
    if l[0] + l[1] == l[2]:
        print 'YES'
    else:
        print 'NO' n = raw_input() n raw_input() raw_input a = [] a [] for i in range(int(n)):
    l = map(int,raw_input().split())
    a.append(l) i range(int(n)) range int(n) int n l = map(int,raw_input().split()) l map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split a.append(l) a.append a append l for l in a:
    l = [x * x for x in l]
    l.sort()
    if l[0] + l[1] == l[2]:
        print 'YES'
    else:
        print 'NO' l a x * x for x in l for x in l x l for x in l x * x x x l = [x * x for x in l] l [x * x for x in l] l.sort() l.sort l sort if l[0] + l[1] == l[2]:
        print 'YES'
    else:
        print 'NO' l[0] + l[1] == l[2] l[0] + l[1] l[0] l 0 l[1] l 1 l[2] l 2 print print l = [x * x for x in l] [x * x for x in l] l a = [] [] a n = raw_input() raw_input() n l = map(int,raw_input().split()) map(int,raw_input().split()) l
#coding: utf-8

n = raw_input()
a = []
for i in range(int(n)):
    l = map(int,raw_input().split())
    a.append(l)

for l in a:
    l = [x * x for x in l]
    l.sort()
    if l[0] + l[1] == l[2]:
        print 'YES'
    else:
        print 'NO'