import sys

for line in range(int(input())):
    str = input().split(" ")
    nums = sorted([int(str[2]), int(str[1]), int(str[0])])
    if nums[2]*nums[2] == nums[1]*nums[1] + nums[0]*nums[0]:
        print("YES")
    else:
        print("NO") import sys sys for line in range(int(input())):
    str = input().split(" ")
    nums = sorted([int(str[2]), int(str[1]), int(str[0])])
    if nums[2]*nums[2] == nums[1]*nums[1] + nums[0]*nums[0]:
        print("YES")
    else:
        print("NO") line range(int(input())) range int(input()) int input() input str = input().split(" ") str input().split(" ") ().split () input split " " nums = sorted([int(str[2]), int(str[1]), int(str[0])]) nums sorted([int(str[2]), int(str[1]), int(str[0])]) sorted [int(str[2]), int(str[1]), int(str[0])] int(str[2]) int str[2] str 2 int(str[1]) int str[1] str 1 int(str[0]) int str[0] str 0 if nums[2]*nums[2] == nums[1]*nums[1] + nums[0]*nums[0]:
        print("YES")
    else:
        print("NO") nums[2]*nums[2] == nums[1]*nums[1] + nums[0]*nums[0] nums[2]*nums[2] nums[2] nums 2 nums[2] nums 2 nums[1]*nums[1] + nums[0]*nums[0] nums[1]*nums[1] nums[1] nums 1 nums[1] nums 1 nums[0]*nums[0] nums[0] nums 0 nums[0] nums 0 print("YES") print "YES" print("NO") print "NO" str = input().split(" ") input().split(" ") str nums = sorted([int(str[2]), int(str[1]), int(str[0])]) sorted([int(str[2]), int(str[1]), int(str[0])]) nums
import sys

for line in range(int(input())):
    str = input().split(" ")
    nums = sorted([int(str[2]), int(str[1]), int(str[0])])
    if nums[2]*nums[2] == nums[1]*nums[1] + nums[0]*nums[0]:
        print("YES")
    else:
        print("NO")