n = int(raw_input())
a = [0,0,0]
 
for i in range(n):
    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 a = [0,0,0] a [0,0,0] 0 0 0 for i in range(n):
    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[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("YES") print "YES" print("NO") print "NO" n = int(raw_input()) int(raw_input()) n a = [0,0,0] [0,0,0] a
n = int(raw_input())
a = [0,0,0]
 
for i in range(n):
    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")