# -*- coding: utf-8 -*-
import math
num = int(raw_input())
for i in range(num):
    list = [int(x) for x in raw_input().split(" ")]
    list.sort(lambda n1, n2:n2 - n1)
    if list[0]**2 == list[1]**2 + list[2]**2:
        print("YES")
    else:
        print("NO") import math math num = int(raw_input()) num int(raw_input()) int raw_input() raw_input for i in range(num):
    list = [int(x) for x in raw_input().split(" ")]
    list.sort(lambda n1, n2:n2 - n1)
    if list[0]**2 == list[1]**2 + list[2]**2:
        print("YES")
    else:
        print("NO") i range(num) range num int(x) for x in raw_input().split(" ") for x in raw_input().split(" ") x raw_input().split(" ") ().split () raw_input split " " for x in raw_input().split(" ") int(x) int x list = [int(x) for x in raw_input().split(" ")] list [int(x) for x in raw_input().split(" ")] list.sort(lambda n1, n2:n2 - n1) list.sort list sort lambda n1, n2:n2 - n1 n2 - n1 n2 n1 n1 n2 if list[0]**2 == list[1]**2 + list[2]**2:
        print("YES")
    else:
        print("NO") list[0]**2 == list[1]**2 + list[2]**2 list[0]**2 list[0] list 0 2 list[1]**2 + list[2]**2 list[1]**2 list[1] list 1 2 list[2]**2 list[2] list 2 2 print("YES") print "YES" print("NO") print "NO" list = [int(x) for x in raw_input().split(" ")] [int(x) for x in raw_input().split(" ")] list num = int(raw_input()) int(raw_input()) num
# -*- coding: utf-8 -*-
import math
num = int(raw_input())
for i in range(num):
    list = [int(x) for x in raw_input().split(" ")]
    list.sort(lambda n1, n2:n2 - n1)
    if list[0]**2 == list[1]**2 + list[2]**2:
        print("YES")
    else:
        print("NO")