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