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

def get_input():
    for i in range(int(input())):
        yield "".join(input())

if __name__ == "__main__":
    array = list(get_input())
    
    for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)**2 + int(b)**2 == int(c)**2:
            print(u"YES")
        elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
        elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
        else:
            print(u"NO") def get_input():
    for i in range(int(input())):
        yield "".join(input()) get_input for i in range(int(input())):
        yield "".join(input()) i range(int(input())) range int(input()) int input() input yield "".join(input()) "".join(input()) "".join "" join input() input if __name__ == "__main__":
    array = list(get_input())
    
    for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)**2 + int(b)**2 == int(c)**2:
            print(u"YES")
        elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
        elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
        else:
            print(u"NO") __name__ == "__main__" __name__ "__main__" array = list(get_input()) array list(get_input()) list get_input() get_input for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)**2 + int(b)**2 == int(c)**2:
            print(u"YES")
        elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
        elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
        else:
            print(u"NO") i range(len(array)) range len(array) len array a,b,c = array[i].split() a array[i].split() [i].split [i] array i split b c if int(a)**2 + int(b)**2 == int(c)**2:
            print(u"YES")
        elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
        elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
        else:
            print(u"NO") int(a)**2 + int(b)**2 == int(c)**2 int(a)**2 + int(b)**2 int(a)**2 int(a) int a 2 int(b)**2 int(b) int b 2 int(c)**2 int(c) int c 2 print(u"YES") print u"YES" elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
         int(c)**2 + int(a)**2 == int(b)**2 int(c)**2 + int(a)**2 int(c)**2 int(c) int c 2 int(a)**2 int(a) int a 2 int(b)**2 int(b) int b 2 print(u"YES") print u"YES" elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
         int(b)**2 + int(c)**2 == int(a)**2 int(b)**2 + int(c)**2 int(b)**2 int(b) int b 2 int(c)**2 int(c) int c 2 int(a)**2 int(a) int a 2 print(u"YES") print u"YES" print(u"NO") print u"NO" b,c = array[i].split() array[i].split() b c = array[i].split() array[i].split() c def get_input():
    for i in range(int(input())):
        yield "".join(input()) def get_input():
    for i in range(int(input())):
        yield "".join(input()) get_input a,b,c = array[i].split() array[i].split() a array = list(get_input()) list(get_input()) array
#-*-coding:utf-8-*-

def get_input():
    for i in range(int(input())):
        yield "".join(input())

if __name__ == "__main__":
    array = list(get_input())
    
    for i in range(len(array)):        
        a,b,c = array[i].split()
        if int(a)**2 + int(b)**2 == int(c)**2:
            print(u"YES")
        elif int(c)**2 + int(a)**2 == int(b)**2:
            print(u"YES")
        elif int(b)**2 + int(c)**2 == int(a)**2:
            print(u"YES")
        else:
            print(u"NO")