n = int(raw_input())
for k in range(n):
    [a,b,c] = map(int,raw_input().split())
    a,b,c = sorted([a,b,c])
    if a**2 + b**2 == c**2:
        print "YES"
    else:
        print "NO" n = int(raw_input()) n int(raw_input()) int raw_input() raw_input for k in range(n):
    [a,b,c] = map(int,raw_input().split())
    a,b,c = sorted([a,b,c])
    if a**2 + b**2 == c**2:
        print "YES"
    else:
        print "NO" k range(n) range n [a,b,c] = map(int,raw_input().split()) [a,b,c] a b c map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split a,b,c = sorted([a,b,c]) a sorted([a,b,c]) sorted [a,b,c] a b c b c if a**2 + b**2 == c**2:
        print "YES"
    else:
        print "NO" a**2 + b**2 == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 print print b,c = sorted([a,b,c]) sorted([a,b,c]) b a,b,c = sorted([a,b,c]) sorted([a,b,c]) a n = int(raw_input()) int(raw_input()) n c = sorted([a,b,c]) sorted([a,b,c]) c
n = int(raw_input())
for k in range(n):
    [a,b,c] = map(int,raw_input().split())
    a,b,c = sorted([a,b,c])
    if a**2 + b**2 == c**2:
        print "YES"
    else:
        print "NO"