for i in range(int(input())):
    temp = [int(x) for x in input().split()]
    stemp = sorted(temp)
    if stemp[2]**2 == stemp[1]**2 + stemp[0]**2:
        print('YES')
    else:
        print('NO')
 for i in range(int(input())):
    temp = [int(x) for x in input().split()]
    stemp = sorted(temp)
    if stemp[2]**2 == stemp[1]**2 + stemp[0]**2:
        print('YES')
    else:
        print('NO') i range(int(input())) range int(input()) int input() input int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x temp = [int(x) for x in input().split()] temp [int(x) for x in input().split()] stemp = sorted(temp) stemp sorted(temp) sorted temp if stemp[2]**2 == stemp[1]**2 + stemp[0]**2:
        print('YES')
    else:
        print('NO') stemp[2]**2 == stemp[1]**2 + stemp[0]**2 stemp[2]**2 stemp[2] stemp 2 2 stemp[1]**2 + stemp[0]**2 stemp[1]**2 stemp[1] stemp 1 2 stemp[0]**2 stemp[0] stemp 0 2 print('YES') print 'YES' print('NO') print 'NO' temp = [int(x) for x in input().split()] [int(x) for x in input().split()] temp stemp = sorted(temp) sorted(temp) stemp
for i in range(int(input())):
    temp = [int(x) for x in input().split()]
    stemp = sorted(temp)
    if stemp[2]**2 == stemp[1]**2 + stemp[0]**2:
        print('YES')
    else:
        print('NO')

