n = int(raw_input())
for i in xrange(n):
    a = map(int, raw_input().split())
    a.sort()
    if a[0]**2 + a[1]**2 == a[2]**2:
        print 'YES'
    else:
        print 'NO' n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for i in xrange(n):
    a = map(int, raw_input().split())
    a.sort()
    if a[0]**2 + a[1]**2 == a[2]**2:
        print 'YES'
    else:
        print 'NO' i xrange(n) xrange n a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split a.sort() a.sort a sort if a[0]**2 + a[1]**2 == a[2]**2:
        print 'YES'
    else:
        print '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 print print n = int(raw_input()) int(raw_input()) n a = map(int, raw_input().split()) map(int, raw_input().split()) a
n = int(raw_input())
for i in xrange(n):
    a = map(int, raw_input().split())
    a.sort()
    if a[0]**2 + a[1]**2 == a[2]**2:
        print 'YES'
    else:
        print 'NO'