for _ in range(int(input())):
    a = [int(i) for i in input().split()]
    print('YES')  if a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 == max(a) ** 2 else print('NO')
 for _ in range(int(input())):
    a = [int(i) for i in input().split()]
    print('YES')  if a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 == max(a) ** 2 else print('NO') _ range(int(input())) range int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a = [int(i) for i in input().split()] a [int(i) for i in input().split()] print('YES')  if a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 == max(a) ** 2 else print('NO') a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 == max(a) ** 2 a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 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 max(a) **2 max(a) max a 2 max(a) ** 2 max(a) max a 2 print('YES') print 'YES' print('NO') print 'NO' a = [int(i) for i in input().split()] [int(i) for i in input().split()] a
for _ in range(int(input())):
    a = [int(i) for i in input().split()]
    print('YES')  if a[0]**2 + a[1]**2 + a[2] ** 2 - max(a) **2 == max(a) ** 2 else print('NO')

