for i in range(int(input())):
    a, b, c = sorted([int(i) for i in input().split()])
    print('YES' if a ** 2 + b ** 2 == c ** 2 else 'NO')
 for i in range(int(input())):
    a, b, c = sorted([int(i) for i in input().split()])
    print('YES' if a ** 2 + b ** 2 == c ** 2 else 'NO') i range(int(input())) range int(input()) int input() input int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a, b, c = sorted([int(i) for i in input().split()]) a sorted([int(i) for i in input().split()]) sorted [int(i) for i in input().split()] b c print('YES' if a ** 2 + b ** 2 == c ** 2 else 'NO') print 'YES' if a ** 2 + b ** 2 == c ** 2 else 'NO' a ** 2 + b ** 2 == c ** 2 a ** 2 + b ** 2 a ** 2 a 2 b ** 2 b 2 c ** 2 c 2 'YES' 'NO' c = sorted([int(i) for i in input().split()]) sorted([int(i) for i in input().split()]) c b, c = sorted([int(i) for i in input().split()]) sorted([int(i) for i in input().split()]) b a, b, c = sorted([int(i) for i in input().split()]) sorted([int(i) for i in input().split()]) a
for i in range(int(input())):
    a, b, c = sorted([int(i) for i in input().split()])
    print('YES' if a ** 2 + b ** 2 == c ** 2 else 'NO')

