for _ in range(int(input())):
    datasqr = [i ** 2 for i in sorted(list(map(int, input().split())))]
    print('YES' if sum(datasqr[:2]) == datasqr[-1] else 'NO') for _ in range(int(input())):
    datasqr = [i ** 2 for i in sorted(list(map(int, input().split())))]
    print('YES' if sum(datasqr[:2]) == datasqr[-1] else 'NO') _ range(int(input())) range int(input()) int input() input i ** 2 for i in sorted(list(map(int, input().split()))) for i in sorted(list(map(int, input().split()))) 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 sorted(list(map(int, input().split()))) i ** 2 i 2 datasqr = [i ** 2 for i in sorted(list(map(int, input().split())))] datasqr [i ** 2 for i in sorted(list(map(int, input().split())))] print('YES' if sum(datasqr[:2]) == datasqr[-1] else 'NO') print 'YES' if sum(datasqr[:2]) == datasqr[-1] else 'NO' sum(datasqr[:2]) == datasqr[-1] sum(datasqr[:2]) sum datasqr[:2] datasqr :2 2 datasqr[-1] datasqr -1 'YES' 'NO' datasqr = [i ** 2 for i in sorted(list(map(int, input().split())))] [i ** 2 for i in sorted(list(map(int, input().split())))] datasqr
for _ in range(int(input())):
    datasqr = [i ** 2 for i in sorted(list(map(int, input().split())))]
    print('YES' if sum(datasqr[:2]) == datasqr[-1] else 'NO')
