#Is it Right Triangre?

n = int(input())
for i in range(n):
    set = input(). split()
    set = [int(a) for a in set] #int?????????
    set.sort()
    if set[0] ** 2 + set[1] ** 2 == set[2] ** 2:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input for i in range(n):
    set = input(). split()
    set = [int(a) for a in set] #int?????????
    set.sort()
    if set[0] ** 2 + set[1] ** 2 == set[2] ** 2:
        print("YES")
    else:
        print("NO") i range(n) range n set = input(). split() set input(). split() (). split () input split int(a) for a in set for a in set a set for a in set int(a) int a set = [int(a) for a in set] set [int(a) for a in set] set.sort() set.sort set sort if set[0] ** 2 + set[1] ** 2 == set[2] ** 2:
        print("YES")
    else:
        print("NO") set[0] ** 2 + set[1] ** 2 == set[2] ** 2 set[0] ** 2 + set[1] ** 2 set[0] ** 2 set[0] set 0 2 set[1] ** 2 set[1] set 1 2 set[2] ** 2 set[2] set 2 2 print("YES") print "YES" print("NO") print "NO" set = [int(a) for a in set] [int(a) for a in set] set set = input(). split() input(). split() set n = int(input()) int(input()) n
#Is it Right Triangre?

n = int(input())
for i in range(n):
    set = input(). split()
    set = [int(a) for a in set] #int?????????
    set.sort()
    if set[0] ** 2 + set[1] ** 2 == set[2] ** 2:
        print("YES")
    else:
        print("NO")