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