cnt = int(input())
values = []
for i in range(cnt):
    values.append([int(x) for x in input().split()])

for x, y, z in values:
    if z ** 2 == x ** 2 + y ** 2:
        print('YES')
    elif x ** 2 == y ** 2 + z ** 2:
        print('YES')
    elif y ** 2 == x ** 2 + z ** 2:
        print('YES')
    else:
        print('NO') cnt = int(input()) cnt int(input()) int input() input values = [] values [] for i in range(cnt):
    values.append([int(x) for x in input().split()]) i range(cnt) range cnt int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x values.append([int(x) for x in input().split()]) values.append values append [int(x) for x in input().split()] for x, y, z in values:
    if z ** 2 == x ** 2 + y ** 2:
        print('YES')
    elif x ** 2 == y ** 2 + z ** 2:
        print('YES')
    elif y ** 2 == x ** 2 + z ** 2:
        print('YES')
    else:
        print('NO') x y z values if z ** 2 == x ** 2 + y ** 2:
        print('YES')
    elif x ** 2 == y ** 2 + z ** 2:
        print('YES')
    elif y ** 2 == x ** 2 + z ** 2:
        print('YES')
    else:
        print('NO') z ** 2 == x ** 2 + y ** 2 z ** 2 z 2 x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 print('YES') print 'YES' elif x ** 2 == y ** 2 + z ** 2:
        print('YES')
     x ** 2 == y ** 2 + z ** 2 x ** 2 x 2 y ** 2 + z ** 2 y ** 2 y 2 z ** 2 z 2 print('YES') print 'YES' elif y ** 2 == x ** 2 + z ** 2:
        print('YES')
     y ** 2 == x ** 2 + z ** 2 y ** 2 y 2 x ** 2 + z ** 2 x ** 2 x 2 z ** 2 z 2 print('YES') print 'YES' print('NO') print 'NO' values = [] [] values cnt = int(input()) int(input()) cnt
cnt = int(input())
values = []
for i in range(cnt):
    values.append([int(x) for x in input().split()])

for x, y, z in values:
    if z ** 2 == x ** 2 + y ** 2:
        print('YES')
    elif x ** 2 == y ** 2 + z ** 2:
        print('YES')
    elif y ** 2 == x ** 2 + z ** 2:
        print('YES')
    else:
        print('NO')