n = int(input())

for i in range(n):
    a, b, c = list(map(int, input().split()))
    if min(a*a+b*b, min(a*a+c*c, c*c+b*b)) == max(a*a, max(b*b, c*c)):
        print ("YES")
    else:
        print ("NO") n = int(input()) n int(input()) int input() input for i in range(n):
    a, b, c = list(map(int, input().split()))
    if min(a*a+b*b, min(a*a+c*c, c*c+b*b)) == max(a*a, max(b*b, c*c)):
        print ("YES")
    else:
        print ("NO") i range(n) range n a, b, c = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b c if min(a*a+b*b, min(a*a+c*c, c*c+b*b)) == max(a*a, max(b*b, c*c)):
        print ("YES")
    else:
        print ("NO") min(a*a+b*b, min(a*a+c*c, c*c+b*b)) == max(a*a, max(b*b, c*c)) min(a*a+b*b, min(a*a+c*c, c*c+b*b)) min a*a+b*b a*a a a b*b b b min(a*a+c*c, c*c+b*b) min a*a+c*c a*a a a c*c c c c*c+b*b c*c c c b*b b b max(a*a, max(b*b, c*c)) max a*a a a max(b*b, c*c) max b*b b b c*c c c print ("YES") print "YES" print ("NO") print "NO" a, b, c = list(map(int, input().split())) list(map(int, input().split())) a b, c = list(map(int, input().split())) list(map(int, input().split())) b c = list(map(int, input().split())) list(map(int, input().split())) c n = int(input()) int(input()) n
n = int(input())

for i in range(n):
    a, b, c = list(map(int, input().split()))
    if min(a*a+b*b, min(a*a+c*c, c*c+b*b)) == max(a*a, max(b*b, c*c)):
        print ("YES")
    else:
        print ("NO")