import sys
size = int(sys.stdin.readline())
for i in range(size):
    line = sys.stdin.readline()
    line = line.split(" ")
    inp = []
    for j in line:
        inp.append(int(j))
    inp.sort()
    if (inp[0]**2+inp[1]**2==inp[2]**2):
        print("YES")
    else:
        print("NO") import sys sys size = int(sys.stdin.readline()) size int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline for i in range(size):
    line = sys.stdin.readline()
    line = line.split(" ")
    inp = []
    for j in line:
        inp.append(int(j))
    inp.sort()
    if (inp[0]**2+inp[1]**2==inp[2]**2):
        print("YES")
    else:
        print("NO") i range(size) range size line = sys.stdin.readline() line sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline line = line.split(" ") line line.split(" ") line.split line split " " inp = [] inp [] for j in line:
        inp.append(int(j))
     j line inp.append(int(j)) inp.append inp append int(j) int j inp.sort() inp.sort inp sort if (inp[0]**2+inp[1]**2==inp[2]**2):
        print("YES")
    else:
        print("NO") inp[0]**2+inp[1]**2==inp[2]**2 inp[0]**2+inp[1]**2 inp[0]**2 inp[0] inp 0 2 inp[1]**2 inp[1] inp 1 2 inp[2]**2 inp[2] inp 2 2 print("YES") print "YES" print("NO") print "NO" line = sys.stdin.readline() sys.stdin.readline() line size = int(sys.stdin.readline()) int(sys.stdin.readline()) size line = line.split(" ") line.split(" ") line inp = [] [] inp
import sys
size = int(sys.stdin.readline())
for i in range(size):
    line = sys.stdin.readline()
    line = line.split(" ")
    inp = []
    for j in line:
        inp.append(int(j))
    inp.sort()
    if (inp[0]**2+inp[1]**2==inp[2]**2):
        print("YES")
    else:
        print("NO")