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