n = input()

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

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