#coding:UTF-8

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

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