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