for _ in range(int(input())):
    e = list(map(int, input().split()))
    print("YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO") for _ in range(int(input())):
    e = list(map(int, input().split()))
    print("YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO") _ range(int(input())) range int(input()) int input() input e = list(map(int, input().split())) e list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print("YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO") print "YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO" max(e) ** 2 * 2 == sum(i ** 2 for i in e) max(e) ** 2 * 2 max(e) ** 2 max(e) max e 2 2 sum(i ** 2 for i in e) sum i ** 2 i 2 "YES" "NO" e = list(map(int, input().split())) list(map(int, input().split())) e
for _ in range(int(input())):
    e = list(map(int, input().split()))
    print("YES" if max(e) ** 2 * 2 == sum(i ** 2 for i in e) else "NO")
