n=int(input())
r=[0]*n
for i in range(n):
    r[i]=sorted(list(map(int,input().split())))
for i in range(n):
    print("YES" if r[i][0]**2+r[i][1]**2==r[i][2]**2 else "NO") n=int(input()) n int(input()) int input() input r=[0]*n r [0]*n [0] 0 n for i in range(n):
    r[i]=sorted(list(map(int,input().split()))) i range(n) range n r[i]=sorted(list(map(int,input().split()))) r[i] r i sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split for i in range(n):
    print("YES" if r[i][0]**2+r[i][1]**2==r[i][2]**2 else "NO") i range(n) range n print("YES" if r[i][0]**2+r[i][1]**2==r[i][2]**2 else "NO") print "YES" if r[i][0]**2+r[i][1]**2==r[i][2]**2 else "NO" r[i][0]**2+r[i][1]**2==r[i][2]**2 r[i][0]**2+r[i][1]**2 r[i][0]**2 r[i][0] [i] r i 0 2 r[i][1]**2 r[i][1] [i] r i 1 2 r[i][2]**2 r[i][2] [i] r i 2 2 "YES" "NO" n=int(input()) int(input()) n r=[0]*n [0]*n r
n=int(input())
r=[0]*n
for i in range(n):
    r[i]=sorted(list(map(int,input().split())))
for i in range(n):
    print("YES" if r[i][0]**2+r[i][1]**2==r[i][2]**2 else "NO")