for i in range(int(input())):
    li = sorted([int(j) for j in input().split()])
    print("YES" if li[0] ** 2 + li[1] ** 2 == li[2] ** 2 else "NO") for i in range(int(input())):
    li = sorted([int(j) for j in input().split()])
    print("YES" if li[0] ** 2 + li[1] ** 2 == li[2] ** 2 else "NO") i range(int(input())) range int(input()) int input() input int(j) for j in input().split() for j in input().split() j input().split() ().split () input split for j in input().split() int(j) int j li = sorted([int(j) for j in input().split()]) li sorted([int(j) for j in input().split()]) sorted [int(j) for j in input().split()] print("YES" if li[0] ** 2 + li[1] ** 2 == li[2] ** 2 else "NO") print "YES" if li[0] ** 2 + li[1] ** 2 == li[2] ** 2 else "NO" li[0] ** 2 + li[1] ** 2 == li[2] ** 2 li[0] ** 2 + li[1] ** 2 li[0] ** 2 li[0] li 0 2 li[1] ** 2 li[1] li 1 2 li[2] ** 2 li[2] li 2 2 "YES" "NO" li = sorted([int(j) for j in input().split()]) sorted([int(j) for j in input().split()]) li
for i in range(int(input())):
    li = sorted([int(j) for j in input().split()])
    print("YES" if li[0] ** 2 + li[1] ** 2 == li[2] ** 2 else "NO")