n = int(input())
array = [[int(i) for i in input().split()] for i in range(n)]
for i in range(n):
    if array[i][0]**2+array[i][1]**2 == array[i][2]**2:
        print("YES")
    elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("YES")
    elif array[i][1]**2+array[i][2]**2 == array[i][0]**2:
        print("YES")
    else:
        print("NO") n = int(input()) n int(input()) int input() input [int(i) for i in input().split()] for i in range(n) for i in range(n) i range(n) range n for i in range(n) [int(i) for i in input().split()] array = [[int(i) for i in input().split()] for i in range(n)] array [[int(i) for i in input().split()] for i in range(n)] for i in range(n):
    if array[i][0]**2+array[i][1]**2 == array[i][2]**2:
        print("YES")
    elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("YES")
    elif array[i][1]**2+array[i][2]**2 == array[i][0]**2:
        print("YES")
    else:
        print("NO") i range(n) range n if array[i][0]**2+array[i][1]**2 == array[i][2]**2:
        print("YES")
    elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("YES")
    elif array[i][1]**2+array[i][2]**2 == array[i][0]**2:
        print("YES")
    else:
        print("NO") array[i][0]**2+array[i][1]**2 == array[i][2]**2 array[i][0]**2+array[i][1]**2 array[i][0]**2 array[i][0] [i] array i 0 2 array[i][1]**2 array[i][1] [i] array i 1 2 array[i][2]**2 array[i][2] [i] array i 2 2 print("YES") print "YES" elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("YES")
     array[i][0]**2+array[i][2]**2 == array[i][1]**2 array[i][0]**2+array[i][2]**2 array[i][0]**2 array[i][0] [i] array i 0 2 array[i][2]**2 array[i][2] [i] array i 2 2 array[i][1]**2 array[i][1] [i] array i 1 2 print("YES") print "YES" elif array[i][1]**2+array[i][2]**2 == array[i][0]**2:
        print("YES")
     array[i][1]**2+array[i][2]**2 == array[i][0]**2 array[i][1]**2+array[i][2]**2 array[i][1]**2 array[i][1] [i] array i 1 2 array[i][2]**2 array[i][2] [i] array i 2 2 array[i][0]**2 array[i][0] [i] array i 0 2 print("YES") print "YES" print("NO") print "NO" n = int(input()) int(input()) n array = [[int(i) for i in input().split()] for i in range(n)] [[int(i) for i in input().split()] for i in range(n)] array
n = int(input())
array = [[int(i) for i in input().split()] for i in range(n)]
for i in range(n):
    if array[i][0]**2+array[i][1]**2 == array[i][2]**2:
        print("YES")
    elif array[i][0]**2+array[i][2]**2 == array[i][1]**2:
        print("YES")
    elif array[i][1]**2+array[i][2]**2 == array[i][0]**2:
        print("YES")
    else:
        print("NO")