N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    sort = sorted([a, b, c])
    if sort[0]**2 + sort[1]**2 == sort[2]**2:
        print("YES")
    else:
        print("NO") N = int(input()) N int(input()) int input() input for i in range(N):
    a, b, c = map(int, input().split())
    sort = sorted([a, b, c])
    if sort[0]**2 + sort[1]**2 == sort[2]**2:
        print("YES")
    else:
        print("NO") i range(N) range N a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c sort = sorted([a, b, c]) sort sorted([a, b, c]) sorted [a, b, c] a b c if sort[0]**2 + sort[1]**2 == sort[2]**2:
        print("YES")
    else:
        print("NO") sort[0]**2 + sort[1]**2 == sort[2]**2 sort[0]**2 + sort[1]**2 sort[0]**2 sort[0] sort 0 2 sort[1]**2 sort[1] sort 1 2 sort[2]**2 sort[2] sort 2 2 print("YES") print "YES" print("NO") print "NO" N = int(input()) int(input()) N b, c = map(int, input().split()) map(int, input().split()) b sort = sorted([a, b, c]) sorted([a, b, c]) sort a, b, c = map(int, input().split()) map(int, input().split()) a c = map(int, input().split()) map(int, input().split()) c
N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    sort = sorted([a, b, c])
    if sort[0]**2 + sort[1]**2 == sort[2]**2:
        print("YES")
    else:
        print("NO")