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