
def check(a, b, c):

    a2 = a ** 2
    b2 = b ** 2
    c2 = c ** 2

    if (a2 + b2) == c2:
        return True
    else:
        return False


n = int(input())

for c in range(n):
    line = input()
    datas = map(int, line.split())
    li = list(datas) 
    a = li[0]
    b = li[1]
    c = li[2]

    if check(a, b, c) or check(b, c, a) or check(c, a, b):
        print("YES")
    else:
        print("NO") def check(a, b, c):

    a2 = a ** 2
    b2 = b ** 2
    c2 = c ** 2

    if (a2 + b2) == c2:
        return True
    else:
        return False check a2 = a ** 2 a2 a ** 2 a 2 b2 = b ** 2 b2 b ** 2 b 2 c2 = c ** 2 c2 c ** 2 c 2 if (a2 + b2) == c2:
        return True
    else:
        return False (a2 + b2) == c2 a2 + b2 a2 b2 c2 return True True return False False a a b b c c n = int(input()) n int(input()) int input() input for c in range(n):
    line = input()
    datas = map(int, line.split())
    li = list(datas) 
    a = li[0]
    b = li[1]
    c = li[2]

    if check(a, b, c) or check(b, c, a) or check(c, a, b):
        print("YES")
    else:
        print("NO") c range(n) range n line = input() line input() input datas = map(int, line.split()) datas map(int, line.split()) map int line.split() line.split line split li = list(datas) li list(datas) list datas a = li[0] a li[0] li 0 b = li[1] b li[1] li 1 c = li[2] c li[2] li 2 if check(a, b, c) or check(b, c, a) or check(c, a, b):
        print("YES")
    else:
        print("NO") check(a, b, c) or check(b, c, a) or check(c, a, b) check(a, b, c) or check(b, c, a) check(a, b, c) check a b c check(b, c, a) check b c a check(c, a, b) check c a b print("YES") print "YES" print("NO") print "NO" def check(a, b, c):

    a2 = a ** 2
    b2 = b ** 2
    c2 = c ** 2

    if (a2 + b2) == c2:
        return True
    else:
        return False def check(a, b, c):

    a2 = a ** 2
    b2 = b ** 2
    c2 = c ** 2

    if (a2 + b2) == c2:
        return True
    else:
        return False check c = li[2] li[2] c n = int(input()) int(input()) n li = list(datas) list(datas) li line = input() input() line b = li[1] li[1] b a = li[0] li[0] a datas = map(int, line.split()) map(int, line.split()) datas

def check(a, b, c):

    a2 = a ** 2
    b2 = b ** 2
    c2 = c ** 2

    if (a2 + b2) == c2:
        return True
    else:
        return False


n = int(input())

for c in range(n):
    line = input()
    datas = map(int, line.split())
    li = list(datas) 
    a = li[0]
    b = li[1]
    c = li[2]

    if check(a, b, c) or check(b, c, a) or check(c, a, b):
        print("YES")
    else:
        print("NO")