import sys
l = sys.stdin.readlines ()
del l[0] # Delete number represents the number of detasets.
for line in l:
    data = map (int, line.split (" "))
    data.sort(reverse=True)
    if data[0]**2 == data[1]**2 + data[2]**2:
        print ("YES")
    else: print ("NO") import sys sys l = sys.stdin.readlines () l sys.stdin.readlines () sys.stdin.readlines sys.stdin sys stdin readlines del l[0] l[0] l 0 for line in l:
    data = map (int, line.split (" "))
    data.sort(reverse=True)
    if data[0]**2 == data[1]**2 + data[2]**2:
        print ("YES")
    else: print ("NO") line l data = map (int, line.split (" ")) data map (int, line.split (" ")) map int line.split (" ") line.split line split " " data.sort(reverse=True) data.sort data sort reverse=True reverse True if data[0]**2 == data[1]**2 + data[2]**2:
        print ("YES")
    else: print ("NO") data[0]**2 == data[1]**2 + data[2]**2 data[0]**2 data[0] data 0 2 data[1]**2 + data[2]**2 data[1]**2 data[1] data 1 2 data[2]**2 data[2] data 2 2 print ("YES") print "YES" data = map (int, line.split (" ")) map (int, line.split (" ")) data l = sys.stdin.readlines () sys.stdin.readlines () l
import sys
l = sys.stdin.readlines ()
del l[0] # Delete number represents the number of detasets.
for line in l:
    data = map (int, line.split (" "))
    data.sort(reverse=True)
    if data[0]**2 == data[1]**2 + data[2]**2:
        print ("YES")
    else: print ("NO")