import sys

n = int(sys.stdin.readline())
for _ in range(n):
    a, b, c = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a * a + b * b == c * c else 'NO') import sys sys n = int(sys.stdin.readline()) n int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline for _ in range(n):
    a, b, c = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a * a + b * b == c * c else 'NO') _ range(n) range n a, b, c = sorted(list(map(int, sys.stdin.readline().split()))) a sorted(list(map(int, sys.stdin.readline().split()))) sorted list(map(int, sys.stdin.readline().split())) list map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split b c print('YES' if a * a + b * b == c * c else 'NO') print 'YES' if a * a + b * b == c * c else 'NO' a * a + b * b == c * c a * a + b * b a * a a a b * b b b c * c c c 'YES' 'NO' n = int(sys.stdin.readline()) int(sys.stdin.readline()) n a, b, c = sorted(list(map(int, sys.stdin.readline().split()))) sorted(list(map(int, sys.stdin.readline().split()))) a b, c = sorted(list(map(int, sys.stdin.readline().split()))) sorted(list(map(int, sys.stdin.readline().split()))) b c = sorted(list(map(int, sys.stdin.readline().split()))) sorted(list(map(int, sys.stdin.readline().split()))) c
import sys

n = int(sys.stdin.readline())
for _ in range(n):
    a, b, c = sorted(list(map(int, sys.stdin.readline().split())))
    print('YES' if a * a + b * b == c * c else 'NO')