def isRTri(a, b, c):
    return a * a + b * b == c * c

a = [0, 0, 0]
n = input()
for k in range(n):
    a = map(int, raw_input().split())
    a.sort()
    r = isRTri(a[0], a[1], a[2])
    print "YES" if r else "NO" def isRTri(a, b, c):
    return a * a + b * b == c * c isRTri return a * a + b * b == c * c a * a + b * b == c * c a * a + b * b a * a a a b * b b b c * c c c a a b b c c a = [0, 0, 0] a [0, 0, 0] 0 0 0 n = input() n input() input for k in range(n):
    a = map(int, raw_input().split())
    a.sort()
    r = isRTri(a[0], a[1], a[2])
    print "YES" if r else "NO" k range(n) range n a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split a.sort() a.sort a sort r = isRTri(a[0], a[1], a[2]) r isRTri(a[0], a[1], a[2]) isRTri a[0] a 0 a[1] a 1 a[2] a 2 print "YES" if r else "NO" r "YES" "NO" n = input() input() n r = isRTri(a[0], a[1], a[2]) isRTri(a[0], a[1], a[2]) r a = [0, 0, 0] [0, 0, 0] a a = map(int, raw_input().split()) map(int, raw_input().split()) a def isRTri(a, b, c):
    return a * a + b * b == c * c def isRTri(a, b, c):
    return a * a + b * b == c * c isRTri
def isRTri(a, b, c):
    return a * a + b * b == c * c

a = [0, 0, 0]
n = input()
for k in range(n):
    a = map(int, raw_input().split())
    a.sort()
    r = isRTri(a[0], a[1], a[2])
    print "YES" if r else "NO"