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