N = int(input())

for i in range(N):
    line = input()
    a, b, c = sorted(int(w) for w in line.split())

    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') N = int(input()) N int(input()) int input() input for i in range(N):
    line = input()
    a, b, c = sorted(int(w) for w in line.split())

    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') i range(N) range N line = input() line input() input a, b, c = sorted(int(w) for w in line.split()) a sorted(int(w) for w in line.split()) sorted int(w) int w b c if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO') a**2 + b**2 == c**2 a**2 + b**2 a**2 a 2 b**2 b 2 c**2 c 2 print('YES') print 'YES' print('NO') print 'NO' a, b, c = sorted(int(w) for w in line.split()) sorted(int(w) for w in line.split()) a b, c = sorted(int(w) for w in line.split()) sorted(int(w) for w in line.split()) b c = sorted(int(w) for w in line.split()) sorted(int(w) for w in line.split()) c N = int(input()) int(input()) N line = input() input() line
N = int(input())

for i in range(N):
    line = input()
    a, b, c = sorted(int(w) for w in line.split())

    if a**2 + b**2 == c**2:
        print('YES')
    else:
        print('NO')