n = int(input())
for i in range(0, n):
    nums = list(map(int, input().split()))
    max_num = max(nums)
    nums.remove(max_num)
    if max_num**2 == nums[0]**2 + nums[1]**2:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input for i in range(0, n):
    nums = list(map(int, input().split()))
    max_num = max(nums)
    nums.remove(max_num)
    if max_num**2 == nums[0]**2 + nums[1]**2:
        print("YES")
    else:
        print("NO") i range(0, n) range 0 n nums = list(map(int, input().split())) nums list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split max_num = max(nums) max_num max(nums) max nums nums.remove(max_num) nums.remove nums remove max_num if max_num**2 == nums[0]**2 + nums[1]**2:
        print("YES")
    else:
        print("NO") max_num**2 == nums[0]**2 + nums[1]**2 max_num**2 max_num 2 nums[0]**2 + nums[1]**2 nums[0]**2 nums[0] nums 0 2 nums[1]**2 nums[1] nums 1 2 print("YES") print "YES" print("NO") print "NO" n = int(input()) int(input()) n max_num = max(nums) max(nums) max_num nums = list(map(int, input().split())) list(map(int, input().split())) nums
n = int(input())
for i in range(0, n):
    nums = list(map(int, input().split()))
    max_num = max(nums)
    nums.remove(max_num)
    if max_num**2 == nums[0]**2 + nums[1]**2:
        print("YES")
    else:
        print("NO")
