import math
N = int(input())
for _ in [0]*N:
    x = sorted(map(int, input().split()))
    print("YES" if x[2] == math.sqrt(x[0]**2+x[1]**2) else "NO") import math math N = int(input()) N int(input()) int input() input for _ in [0]*N:
    x = sorted(map(int, input().split()))
    print("YES" if x[2] == math.sqrt(x[0]**2+x[1]**2) else "NO") _ [0]*N [0] 0 N x = sorted(map(int, input().split())) x sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split print("YES" if x[2] == math.sqrt(x[0]**2+x[1]**2) else "NO") print "YES" if x[2] == math.sqrt(x[0]**2+x[1]**2) else "NO" x[2] == math.sqrt(x[0]**2+x[1]**2) x[2] x 2 math.sqrt(x[0]**2+x[1]**2) math.sqrt math sqrt x[0]**2+x[1]**2 x[0]**2 x[0] x 0 2 x[1]**2 x[1] x 1 2 "YES" "NO" N = int(input()) int(input()) N x = sorted(map(int, input().split())) sorted(map(int, input().split())) x
import math
N = int(input())
for _ in [0]*N:
    x = sorted(map(int, input().split()))
    print("YES" if x[2] == math.sqrt(x[0]**2+x[1]**2) else "NO")