n = input()
for i in xrange(n):
    li = map(int, raw_input().split())
    li.sort()    
    if li[0]**2 + li[1]**2 == li[2]**2:
        print "YES"
    else:
        print "NO" n = input() n input() input for i in xrange(n):
    li = map(int, raw_input().split())
    li.sort()    
    if li[0]**2 + li[1]**2 == li[2]**2:
        print "YES"
    else:
        print "NO" i xrange(n) xrange n li = map(int, raw_input().split()) li map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split li.sort() li.sort li sort if li[0]**2 + li[1]**2 == li[2]**2:
        print "YES"
    else:
        print "NO" li[0]**2 + li[1]**2 == li[2]**2 li[0]**2 + li[1]**2 li[0]**2 li[0] li 0 2 li[1]**2 li[1] li 1 2 li[2]**2 li[2] li 2 2 print print n = input() input() n li = map(int, raw_input().split()) map(int, raw_input().split()) li
n = input()
for i in xrange(n):
    li = map(int, raw_input().split())
    li.sort()    
    if li[0]**2 + li[1]**2 == li[2]**2:
        print "YES"
    else:
        print "NO"