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