
round = int(input(""))
for i in range (0,round):
    arr = []
    temp = input("")
    a,b,c = temp.split(" ")
    arr.append(int(a))
    arr.append(int(b))
    arr.append(int(c))
    arr.sort()
    if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)):
        print("YES")
    else:
        print("NO")
 round = int(input("")) round int(input("")) int input("") input "" for i in range (0,round):
    arr = []
    temp = input("")
    a,b,c = temp.split(" ")
    arr.append(int(a))
    arr.append(int(b))
    arr.append(int(c))
    arr.sort()
    if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)):
        print("YES")
    else:
        print("NO") i range (0,round) range 0 round arr = [] arr [] temp = input("") temp input("") input "" a,b,c = temp.split(" ") a temp.split(" ") temp.split temp split " " b c arr.append(int(a)) arr.append arr append int(a) int a arr.append(int(b)) arr.append arr append int(b) int b arr.append(int(c)) arr.append arr append int(c) int c arr.sort() arr.sort arr sort if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)):
        print("YES")
    else:
        print("NO") pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2) pow(arr[0],2)+pow(arr[1],2) pow(arr[0],2) pow arr[0] arr 0 2 pow(arr[1],2) pow arr[1] arr 1 2 pow(arr[2],2) pow arr[2] arr 2 2 print("YES") print "YES" print("NO") print "NO" a,b,c = temp.split(" ") temp.split(" ") a c = temp.split(" ") temp.split(" ") c temp = input("") input("") temp b,c = temp.split(" ") temp.split(" ") b round = int(input("")) int(input("")) round arr = [] [] arr

round = int(input(""))
for i in range (0,round):
    arr = []
    temp = input("")
    a,b,c = temp.split(" ")
    arr.append(int(a))
    arr.append(int(b))
    arr.append(int(c))
    arr.sort()
    if(pow(arr[0],2)+pow(arr[1],2)==pow(arr[2],2)):
        print("YES")
    else:
        print("NO")

