import sys

n = int(input())
for i in range(n):
    a = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else 'NO') import sys sys n = int(input()) n int(input()) int input() input for i in range(n):
    a = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else 'NO') i range(n) range n a = sorted(list(map(int, sys.stdin.readline().split()))) a sorted(list(map(int, sys.stdin.readline().split()))) sorted list(map(int, sys.stdin.readline().split())) list map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split print('YES' if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else 'NO') print 'YES' if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else 'NO' a[0] ** 2 + a[1] ** 2 == a[2] ** 2 a[0] ** 2 + a[1] ** 2 a[0] ** 2 a[0] a 0 2 a[1] ** 2 a[1] a 1 2 a[2] ** 2 a[2] a 2 2 'YES' 'NO' a = sorted(list(map(int, sys.stdin.readline().split()))) sorted(list(map(int, sys.stdin.readline().split()))) a n = int(input()) int(input()) n
import sys

n = int(input())
for i in range(n):
    a = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a[0] ** 2 + a[1] ** 2 == a[2] ** 2 else 'NO')