
nums = input()
lines = [[]]*nums

for x in range(nums):
    lines[x] = map(int, raw_input().split(' '))


for li in lines:
    li.sort()

for li in lines:
    if li[0]**2 + li[1]**2 == li[2]**2 :
        print 'YES'
    else:
        print 'NO' nums = input() nums input() input lines = [[]]*nums lines [[]]*nums [[]] [] nums for x in range(nums):
    lines[x] = map(int, raw_input().split(' ')) x range(nums) range nums lines[x] = map(int, raw_input().split(' ')) lines[x] lines x map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' for li in lines:
    li.sort() li lines li.sort() li.sort li sort for li in lines:
    if li[0]**2 + li[1]**2 == li[2]**2 :
        print 'YES'
    else:
        print 'NO' li lines 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 nums = input() input() nums lines = [[]]*nums [[]]*nums lines

nums = input()
lines = [[]]*nums

for x in range(nums):
    lines[x] = map(int, raw_input().split(' '))


for li in lines:
    li.sort()

for li in lines:
    if li[0]**2 + li[1]**2 == li[2]**2 :
        print 'YES'
    else:
        print 'NO'