num = int(input())
for i in range (num):
    a=sorted(list(map(int,input().split())))
    if a[0]**2+a[1]**2 == (a[2])**2:
        print("YES")
    else:
        print("NO") num = int(input()) num int(input()) int input() input for i in range (num):
    a=sorted(list(map(int,input().split())))
    if a[0]**2+a[1]**2 == (a[2])**2:
        print("YES")
    else:
        print("NO") i range (num) range num a=sorted(list(map(int,input().split()))) a sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if a[0]**2+a[1]**2 == (a[2])**2:
        print("YES")
    else:
        print("NO") a[0]**2+a[1]**2 == (a[2])**2 a[0]**2+a[1]**2 a[0]**2 a[0] a 0 2 a[1]**2 a[1] a 1 2 (a[2])**2 a[2] a 2 2 print("YES") print "YES" print("NO") print "NO" num = int(input()) int(input()) num a=sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) a
num = int(input())
for i in range (num):
    a=sorted(list(map(int,input().split())))
    if a[0]**2+a[1]**2 == (a[2])**2:
        print("YES")
    else:
        print("NO")