data = []
try:
    while True:
        data.append(raw_input())

except EOFError:
    pass

n = int(data[0])
if n <= 1000:
    for i in range(1, n+1):
        x, y, z = data[i].split()
        x, y, z = int(x), int(y), int(z)
        if x <= 1000 and y <= 1000 and z <= 1000:
            if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO" data = [] data [] try:
    while True:
        data.append(raw_input())

except EOFError:
    pass except EOFError:
    pass while True:
        data.append(raw_input()) True data.append(raw_input()) data.append data append raw_input() raw_input n = int(data[0]) n int(data[0]) int data[0] data 0 if n <= 1000:
    for i in range(1, n+1):
        x, y, z = data[i].split()
        x, y, z = int(x), int(y), int(z)
        if x <= 1000 and y <= 1000 and z <= 1000:
            if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO" n <= 1000 n 1000 for i in range(1, n+1):
        x, y, z = data[i].split()
        x, y, z = int(x), int(y), int(z)
        if x <= 1000 and y <= 1000 and z <= 1000:
            if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO" i range(1, n+1) range 1 n+1 n 1 x, y, z = data[i].split() x data[i].split() [i].split [i] data i split y z x, y, z = int(x), int(y), int(z) x int(x) int x y int(y) int y z int(z) int z if x <= 1000 and y <= 1000 and z <= 1000:
            if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO" x <= 1000 and y <= 1000 and z <= 1000 x <= 1000 and y <= 1000 x <= 1000 x 1000 y <= 1000 y 1000 z <= 1000 z 1000 if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO" z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x z * 0.8 == x and z * 0.6 == y z * 0.8 == x z * 0.8 z 0.8 x z * 0.6 == y z * 0.6 z 0.6 y z * 0.8 == y and z * 0.6 == x z * 0.8 == y z * 0.8 z 0.8 y z * 0.6 == x z * 0.6 z 0.6 x y * 0.8 == x and y * 0.6 == z y * 0.8 == x y * 0.8 y 0.8 x y * 0.6 == z y * 0.6 y 0.6 z y * 0.8 == z and y * 0.6 == x y * 0.8 == z y * 0.8 y 0.8 z y * 0.6 == x y * 0.6 y 0.6 x x * 0.8 == z and x * 0.6 == y x * 0.8 == z x * 0.8 x 0.8 z x * 0.6 == y x * 0.6 x 0.6 y x * 0.8 == y and x * 0.6 == z x * 0.8 == y x * 0.8 x 0.8 y x * 0.6 == z x * 0.6 x 0.6 z print print n = int(data[0]) int(data[0]) n z = int(x), int(y), int(z) int(z) z x, y, z = data[i].split() data[i].split() x y, z = int(x), int(y), int(z) int(y) y data = [] [] data x, y, z = int(x), int(y), int(z) int(x) x y, z = data[i].split() data[i].split() y z = data[i].split() data[i].split() z
data = []
try:
    while True:
        data.append(raw_input())

except EOFError:
    pass

n = int(data[0])
if n <= 1000:
    for i in range(1, n+1):
        x, y, z = data[i].split()
        x, y, z = int(x), int(y), int(z)
        if x <= 1000 and y <= 1000 and z <= 1000:
            if (z * 0.8 == x and z * 0.6 == y
                or z * 0.8 == y and z * 0.6 == x
                or y * 0.8 == x and y * 0.6 == z
                or y * 0.8 == z and y * 0.6 == x
                or x * 0.8 == z and x * 0.6 == y
                or x * 0.8 == y and x * 0.6 == z):
                print "YES"
            else:
                print "NO"