import math



N = int(eval(input()))



for i in range(N):

  side_len = list(map(int, input().split(" ")))

  side_len.sort()

  if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):

    print("YES")

  else:

    print("NO")

import math



num = int(eval(input()))



for i in range(num):

    try:

        sides = list(map(int, input().split(" ")))

        sides.sort()



        if int(math.pow(sides[0], 2)) + int(math.pow(sides[1], 2)) == int(math.pow(sides[2], 2)):

            print("YES")

        else:

            print("NO")



    except:

        break

import math

N = int(eval(input()))
for i in range(N):
    side_len = list(map(int, input().split(" ")))
    side_len.sort()
    if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(
        math.pow(side_len[2], 2)
    ):
        print("YES")
    else:
        print("NO")

import math

num = int(eval(input()))
for i in range(num):
    try:
        sides = list(map(int, input().split(" ")))
        sides.sort()
        if int(math.pow(sides[0], 2)) + int(math.pow(sides[1], 2)) == int(
            math.pow(sides[2], 2)
        ):
            print("YES")
        else:
            print("NO")
    except:
        break

-N = int(eval(input())) -for i in range(N): -    side_len = list(map(int, input().split(" "))) -    side_len.sort() -    if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int( -        math.pow(side_len[2], 2) -    ): -        print("YES") -    else: -        print("NO") +num = int(eval(input())) +for i in range(num): +    try: +        sides = list(map(int, input().split(" "))) +        sides.sort() +        if int(math.pow(sides[0], 2)) + int(math.pow(sides[1], 2)) == int( +            math.pow(sides[2], 2) +        ): +            print("YES") +        else: +            print("NO") +    except: +        break