# -*- coding:utf-8 -*-

import sys

array = []
for i in sys.stdin:
    array.append(i)

N = int(array[0])
for k in range(1,N+1):
    x = array[k].split()
    a, b, c = int(x[0]), int(x[1]), int(x[2])
    if a**2 + b**2 == c**2 or b**2 + c**2 == a**2 or c**2 + a**2 == b**2:
        print('YES')
    else:
        print('NO') import sys sys array = [] array [] for i in sys.stdin:
    array.append(i) i sys.stdin sys stdin array.append(i) array.append array append i N = int(array[0]) N int(array[0]) int array[0] array 0 for k in range(1,N+1):
    x = array[k].split()
    a, b, c = int(x[0]), int(x[1]), int(x[2])
    if a**2 + b**2 == c**2 or b**2 + c**2 == a**2 or c**2 + a**2 == b**2:
        print('YES')
    else:
        print('NO') k range(1,N+1) range 1 N+1 N 1 x = array[k].split() x array[k].split() [k].split [k] array k split a, b, c = int(x[0]), int(x[1]), int(x[2]) a int(x[0]) int x[0] x 0 b int(x[1]) int x[1] x 1 c int(x[2]) int x[2] x 2 if a**2 + b**2 == c**2 or b**2 + c**2 == a**2 or c**2 + a**2 == b**2:
        print('YES')
    else:
        print('NO') a**2 + b**2 == c**2 or b**2 + c**2 == a**2 or c**2 + a**2 == b**2 a**2 + b**2 == c**2 or b**2 + c**2 == a**2 a**2 + b**2 == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 b**2 + c**2 == a**2 b**2 + c**2 b**2 b 2 c**2 c 2 a**2 a 2 c**2 + a**2 == b**2 c**2 + a**2 c**2 c 2 a**2 a 2 b**2 b 2 print('YES') print 'YES' print('NO') print 'NO' b, c = int(x[0]), int(x[1]), int(x[2]) int(x[1]) b array = [] [] array N = int(array[0]) int(array[0]) N x = array[k].split() array[k].split() x a, b, c = int(x[0]), int(x[1]), int(x[2]) int(x[0]) a c = int(x[0]), int(x[1]), int(x[2]) int(x[2]) c
# -*- coding:utf-8 -*-

import sys

array = []
for i in sys.stdin:
    array.append(i)

N = int(array[0])
for k in range(1,N+1):
    x = array[k].split()
    a, b, c = int(x[0]), int(x[1]), int(x[2])
    if a**2 + b**2 == c**2 or b**2 + c**2 == a**2 or c**2 + a**2 == b**2:
        print('YES')
    else:
        print('NO')