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