n = input()

for i in range(n):
    l = map(int, raw_input().strip().split(" "));
    l.sort();
    if (l[2] ** 2 == l[1] ** 2 + l[0] ** 2):
        print "YES"
    else:
        print "NO" n = input() n input() input for i in range(n):
    l = map(int, raw_input().strip().split(" "));
    l.sort();
    if (l[2] ** 2 == l[1] ** 2 + l[0] ** 2):
        print "YES"
    else:
        print "NO" i range(n) range n l = map(int, raw_input().strip().split(" ")) l map(int, raw_input().strip().split(" ")) map int raw_input().strip().split(" ") ().strip().split ().strip() ().strip () raw_input strip split " " l.sort() l.sort l sort if (l[2] ** 2 == l[1] ** 2 + l[0] ** 2):
        print "YES"
    else:
        print "NO" l[2] ** 2 == l[1] ** 2 + l[0] ** 2 l[2] ** 2 l[2] l 2 2 l[1] ** 2 + l[0] ** 2 l[1] ** 2 l[1] l 1 2 l[0] ** 2 l[0] l 0 2 print print n = input() input() n l = map(int, raw_input().strip().split(" ")) map(int, raw_input().strip().split(" ")) l
n = input()

for i in range(n):
    l = map(int, raw_input().strip().split(" "));
    l.sort();
    if (l[2] ** 2 == l[1] ** 2 + l[0] ** 2):
        print "YES"
    else:
        print "NO"