n = int(input())
for i in range(n):
    s = input().split(" ")
    s = [int(j) for j in s]
    s.sort()
    a = s[0]
    b = s[1]
    c = s[2]

    if(a**2+b**2==c**2):
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input for i in range(n):
    s = input().split(" ")
    s = [int(j) for j in s]
    s.sort()
    a = s[0]
    b = s[1]
    c = s[2]

    if(a**2+b**2==c**2):
        print("YES")
    else:
        print("NO") i range(n) range n s = input().split(" ") s input().split(" ") ().split () input split " " int(j) for j in s for j in s j s for j in s int(j) int j s = [int(j) for j in s] s [int(j) for j in s] s.sort() s.sort s sort a = s[0] a s[0] s 0 b = s[1] b s[1] s 1 c = s[2] c s[2] s 2 if(a**2+b**2==c**2):
        print("YES")
    else:
        print("NO") a**2+b**2==c**2 a**2+b**2 a**2 a 2 b**2 b 2 c**2 c 2 print("YES") print "YES" print("NO") print "NO" a = s[0] s[0] a s = input().split(" ") input().split(" ") s s = [int(j) for j in s] [int(j) for j in s] s c = s[2] s[2] c n = int(input()) int(input()) n b = s[1] s[1] b
n = int(input())
for i in range(n):
    s = input().split(" ")
    s = [int(j) for j in s]
    s.sort()
    a = s[0]
    b = s[1]
    c = s[2]

    if(a**2+b**2==c**2):
        print("YES")
    else:
        print("NO")