import sys
n = raw_input()
for line in sys.stdin:
    li = sorted([int(x) for x in line.split()],reverse=True)
    print "YES" if (li[0]**2 == li[1]**2 + li[2]**2) else "NO" import sys sys n = raw_input() n raw_input() raw_input for line in sys.stdin:
    li = sorted([int(x) for x in line.split()],reverse=True)
    print "YES" if (li[0]**2 == li[1]**2 + li[2]**2) else "NO" line sys.stdin sys stdin int(x) for x in line.split() for x in line.split() x line.split() line.split line split for x in line.split() int(x) int x li = sorted([int(x) for x in line.split()],reverse=True) li sorted([int(x) for x in line.split()],reverse=True) sorted [int(x) for x in line.split()] reverse=True reverse True print "YES" if (li[0]**2 == li[1]**2 + li[2]**2) else "NO" li[0]**2 == li[1]**2 + li[2]**2 li[0]**2 li[0] li 0 2 li[1]**2 + li[2]**2 li[1]**2 li[1] li 1 2 li[2]**2 li[2] li 2 2 "YES" "NO" n = raw_input() raw_input() n li = sorted([int(x) for x in line.split()],reverse=True) sorted([int(x) for x in line.split()],reverse=True) li
import sys
n = raw_input()
for line in sys.stdin:
    li = sorted([int(x) for x in line.split()],reverse=True)
    print "YES" if (li[0]**2 == li[1]**2 + li[2]**2) else "NO"