N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    if(a > c):
        a, c = c, a
    if(b > c):
        b, c = c, b
    if(c**2 == a**2 + b**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())
    if(a > c):
        a, c = c, a
    if(b > c):
        b, c = c, b
    if(c**2 == a**2 + b**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 if(a > c):
        a, c = c, a
     a > c a c a, c = c, a a c c a if(b > c):
        b, c = c, b
     b > c b c b, c = c, b b c c b if(c**2 == a**2 + b**2):
        print("YES")
    else:
        print("NO") c**2 == a**2 + b**2 c**2 c 2 a**2 + b**2 a**2 a 2 b**2 b 2 print("YES") print "YES" print("NO") print "NO" c = map(int, input().split()) map(int, input().split()) c c = c, b b c b, c = map(int, input().split()) map(int, input().split()) b c = c, a a c b, c = c, b c b a, c = c, a c a N = int(input()) int(input()) N a, b, c = map(int, input().split()) map(int, input().split()) a
N = int(input())
for i in range(N):
    a, b, c = map(int, input().split())
    if(a > c):
        a, c = c, a
    if(b > c):
        b, c = c, b
    if(c**2 == a**2 + b**2):
        print("YES")
    else:
        print("NO")