num = input()
for x in range(0, int(num)):
    l = map(int, input().split())
    lists = sorted(l)
    if lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2:
        print("YES")
    else:
        print("NO") num = input() num input() input for x in range(0, int(num)):
    l = map(int, input().split())
    lists = sorted(l)
    if lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2:
        print("YES")
    else:
        print("NO") x range(0, int(num)) range 0 int(num) int num l = map(int, input().split()) l map(int, input().split()) map int input().split() ().split () input split lists = sorted(l) lists sorted(l) sorted l if lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2:
        print("YES")
    else:
        print("NO") lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2 lists[2] ** 2 lists[2] lists 2 2 lists[0] ** 2 + lists[1] ** 2 lists[0] ** 2 lists[0] lists 0 2 lists[1] ** 2 lists[1] lists 1 2 print("YES") print "YES" print("NO") print "NO" num = input() input() num lists = sorted(l) sorted(l) lists l = map(int, input().split()) map(int, input().split()) l
num = input()
for x in range(0, int(num)):
    l = map(int, input().split())
    lists = sorted(l)
    if lists[2] ** 2 == lists[0] ** 2 + lists[1] ** 2:
        print("YES")
    else:
        print("NO")