N = int(raw_input())

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

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