import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}

#?????????????????§?????????
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(1,len(ip)):
    for j in range(3):
        #?????????????????????
        for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                    
for i in range(1,len(ip)):   
    if int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2:
        print("YES")
    else:
        print("NO") import string string import sys sys import math math ip = sys.stdin.readlines() ip sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines ip_list = {} ip_list {} for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split() i range(len(ip)) range len(ip) len ip ip_list[i] = ip[i].strip("\n").split() ip_list[i] ip_list i ip[i].strip("\n").split() [i].strip("\n").split [i].strip("\n") [i].strip [i] ip i strip "\n" split for i in range(1,len(ip)):
    for j in range(3):
        #?????????????????????
        for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                     i range(1,len(ip)) range 1 len(ip) len ip for j in range(3):
        #?????????????????????
        for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                     j range(3) range 3 for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                     t range(3) range 3 for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                     k range(3) range 3 if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                     int(ip_list[i][t]) > int(ip_list[i][k]) int(ip_list[i][t]) int ip_list[i][t] [i] ip_list i t int(ip_list[i][k]) int ip_list[i][k] [i] ip_list i k tmp = ip_list[i][t] tmp ip_list[i][t] [i] ip_list i t ip_list[i][t] = ip_list[i][k] ip_list[i][t] [i] ip_list i t ip_list[i][k] [i] ip_list i k ip_list[i][k] = tmp ip_list[i][k] [i] ip_list i k tmp for i in range(1,len(ip)):   
    if int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2:
        print("YES")
    else:
        print("NO") i range(1,len(ip)) range 1 len(ip) len ip if int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2:
        print("YES")
    else:
        print("NO") int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2 int(ip_list[i][0])**2 int(ip_list[i][0]) int ip_list[i][0] [i] ip_list i 0 2 int(ip_list[i][1])**2 + int(ip_list[i][2])**2 int(ip_list[i][1])**2 int(ip_list[i][1]) int ip_list[i][1] [i] ip_list i 1 2 int(ip_list[i][2])**2 int(ip_list[i][2]) int ip_list[i][2] [i] ip_list i 2 2 print("YES") print "YES" print("NO") print "NO" ip = sys.stdin.readlines() sys.stdin.readlines() ip tmp = ip_list[i][t] ip_list[i][t] tmp ip_list = {} {} ip_list
import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}

#?????????????????§?????????
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(1,len(ip)):
    for j in range(3):
        #?????????????????????
        for t in range(3):
            for k in range(3):
                if int(ip_list[i][t]) > int(ip_list[i][k]):
                    tmp = ip_list[i][t]
                    ip_list[i][t] = ip_list[i][k]
                    ip_list[i][k] = tmp  
                    
for i in range(1,len(ip)):   
    if int(ip_list[i][0])**2 == int(ip_list[i][1])**2 + int(ip_list[i][2])**2:
        print("YES")
    else:
        print("NO")