# -*- coding: utf-8 -*-

n = int(raw_input())
#print n

while True:
    try:
        a = map(int, raw_input().split())
        #print a
        a.sort(reverse=True)
        #print a

        b, c, d = a
        if (b * b) == ((c * c) + (d * d)):
            print 'YES'
        else:
            print 'NO'
    except EOFError:
        break; n = int(raw_input()) n int(raw_input()) int raw_input() raw_input while True:
    try:
        a = map(int, raw_input().split())
        #print a
        a.sort(reverse=True)
        #print a

        b, c, d = a
        if (b * b) == ((c * c) + (d * d)):
            print 'YES'
        else:
            print 'NO'
    except EOFError:
        break; True try:
        a = map(int, raw_input().split())
        #print a
        a.sort(reverse=True)
        #print a

        b, c, d = a
        if (b * b) == ((c * c) + (d * d)):
            print 'YES'
        else:
            print 'NO'
    except EOFError:
        break; except EOFError:
        break; break a = map(int, raw_input().split()) a map(int, raw_input().split()) map int raw_input().split() ().split () raw_input split a.sort(reverse=True) a.sort a sort reverse=True reverse True b, c, d = a b a c d if (b * b) == ((c * c) + (d * d)):
            print 'YES'
        else:
            print 'NO'
     (b * b) == ((c * c) + (d * d)) b * b b b (c * c) + (d * d) c * c c c d * d d d print print a = map(int, raw_input().split()) map(int, raw_input().split()) a n = int(raw_input()) int(raw_input()) n b, c, d = a a b d = a a d c, d = a a c
# -*- coding: utf-8 -*-

n = int(raw_input())
#print n

while True:
    try:
        a = map(int, raw_input().split())
        #print a
        a.sort(reverse=True)
        #print a

        b, c, d = a
        if (b * b) == ((c * c) + (d * d)):
            print 'YES'
        else:
            print 'NO'
    except EOFError:
        break;