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