N=int(input())
for i in range(N):
    lst=sorted([int(s) for s in input().split()],reverse=True)
    if lst[0]**2 == lst[1]**2+lst[2]**2:
        print("YES")
    else:
        print("NO") N=int(input()) N int(input()) int input() input for i in range(N):
    lst=sorted([int(s) for s in input().split()],reverse=True)
    if lst[0]**2 == lst[1]**2+lst[2]**2:
        print("YES")
    else:
        print("NO") i range(N) range N int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s lst=sorted([int(s) for s in input().split()],reverse=True) lst sorted([int(s) for s in input().split()],reverse=True) sorted [int(s) for s in input().split()] reverse=True reverse True if lst[0]**2 == lst[1]**2+lst[2]**2:
        print("YES")
    else:
        print("NO") lst[0]**2 == lst[1]**2+lst[2]**2 lst[0]**2 lst[0] lst 0 2 lst[1]**2+lst[2]**2 lst[1]**2 lst[1] lst 1 2 lst[2]**2 lst[2] lst 2 2 print("YES") print "YES" print("NO") print "NO" N=int(input()) int(input()) N lst=sorted([int(s) for s in input().split()],reverse=True) sorted([int(s) for s in input().split()],reverse=True) lst
N=int(input())
for i in range(N):
    lst=sorted([int(s) for s in input().split()],reverse=True)
    if lst[0]**2 == lst[1]**2+lst[2]**2:
        print("YES")
    else:
        print("NO")