import sys

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

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