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