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