N = int(input())

for i in range(N):
    adjacent_side_1, adjacent_side_2, hypotenuse = sorted(list(map(int, input().split())))
    if adjacent_side_1**2 + adjacent_side_2**2 == hypotenuse**2:
        print('YES')
    else:
        print('NO')
 N = int(input()) N int(input()) int input() input for i in range(N):
    adjacent_side_1, adjacent_side_2, hypotenuse = sorted(list(map(int, input().split())))
    if adjacent_side_1**2 + adjacent_side_2**2 == hypotenuse**2:
        print('YES')
    else:
        print('NO') i range(N) range N adjacent_side_1, adjacent_side_2, hypotenuse = sorted(list(map(int, input().split()))) adjacent_side_1 sorted(list(map(int, input().split()))) sorted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split adjacent_side_2 hypotenuse if adjacent_side_1**2 + adjacent_side_2**2 == hypotenuse**2:
        print('YES')
    else:
        print('NO') adjacent_side_1**2 + adjacent_side_2**2 == hypotenuse**2 adjacent_side_1**2 + adjacent_side_2**2 adjacent_side_1**2 adjacent_side_1 2 adjacent_side_2**2 adjacent_side_2 2 hypotenuse**2 hypotenuse 2 print('YES') print 'YES' print('NO') print 'NO' hypotenuse = sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) hypotenuse adjacent_side_2, hypotenuse = sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) adjacent_side_2 adjacent_side_1, adjacent_side_2, hypotenuse = sorted(list(map(int, input().split()))) sorted(list(map(int, input().split()))) adjacent_side_1 N = int(input()) int(input()) N
N = int(input())

for i in range(N):
    adjacent_side_1, adjacent_side_2, hypotenuse = sorted(list(map(int, input().split())))
    if adjacent_side_1**2 + adjacent_side_2**2 == hypotenuse**2:
        print('YES')
    else:
        print('NO')

