n=int(input())
for i in range(n):
    a,b,c = input().split()
    x = int(a)
    y = int(b)
    z = int(c)
    p = [x,y,z]
    p.sort()
    if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO') n=int(input()) n int(input()) int input() input for i in range(n):
    a,b,c = input().split()
    x = int(a)
    y = int(b)
    z = int(c)
    p = [x,y,z]
    p.sort()
    if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO') i range(n) range n a,b,c = input().split() a input().split() ().split () input split b c x = int(a) x int(a) int a y = int(b) y int(b) int b z = int(c) z int(c) int c p = [x,y,z] p [x,y,z] x y z p.sort() p.sort p sort if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO') pow(p[0],2) + pow(p[1],2) == pow(p[2],2) pow(p[0],2) + pow(p[1],2) pow(p[0],2) pow p[0] p 0 2 pow(p[1],2) pow p[1] p 1 2 pow(p[2],2) pow p[2] p 2 2 print('YES') print 'YES' print('NO') print 'NO' a,b,c = input().split() input().split() a c = input().split() input().split() c z = int(c) int(c) z b,c = input().split() input().split() b p = [x,y,z] [x,y,z] p x = int(a) int(a) x n=int(input()) int(input()) n y = int(b) int(b) y
n=int(input())
for i in range(n):
    a,b,c = input().split()
    x = int(a)
    y = int(b)
    z = int(c)
    p = [x,y,z]
    p.sort()
    if pow(p[0],2) + pow(p[1],2) == pow(p[2],2):
        print('YES')
    else:
        print('NO')
