n = int(input())
for i in range(n):
    side = list(map(int,input().split()))

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

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

    side.sort()
    if(side[0]**2 + side[1]**2 == side[2]**2):
        print("YES")
    else:
        print("NO")