for i in range(int(input())):
    a = sorted(map(int,input().split()),reverse = True)
    if a[0]**2 == a[1]**2 + a[2]**2:
        print("YES")
    else:
        print("NO") for i in range(int(input())):
    a = sorted(map(int,input().split()),reverse = True)
    if a[0]**2 == a[1]**2 + a[2]**2:
        print("YES")
    else:
        print("NO") i range(int(input())) range int(input()) int input() input a = sorted(map(int,input().split()),reverse = True) a sorted(map(int,input().split()),reverse = True) sorted map(int,input().split()) map int input().split() ().split () input split reverse = True reverse True 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[0] a 0 2 a[1]**2 + a[2]**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" a = sorted(map(int,input().split()),reverse = True) sorted(map(int,input().split()),reverse = True) a
for i in range(int(input())):
    a = sorted(map(int,input().split()),reverse = True)
    if a[0]**2 == a[1]**2 + a[2]**2:
        print("YES")
    else:
        print("NO")