import math

N = int(input())

for i in range(N):
  side_len = list(map(int, input().split(" ")))
  side_len.sort()
  if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):
    print("YES")
  else:
    print("NO") import math math N = int(input()) N int(input()) int input() input for i in range(N):
  side_len = list(map(int, input().split(" ")))
  side_len.sort()
  if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):
    print("YES")
  else:
    print("NO") i range(N) range N side_len = list(map(int, input().split(" "))) side_len list(map(int, input().split(" "))) list map(int, input().split(" ")) map int input().split(" ") ().split () input split " " side_len.sort() side_len.sort side_len sort if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):
    print("YES")
  else:
    print("NO") int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)) int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) int(math.pow(side_len[0], 2)) int math.pow(side_len[0], 2) math.pow math pow side_len[0] side_len 0 2 int(math.pow(side_len[1], 2)) int math.pow(side_len[1], 2) math.pow math pow side_len[1] side_len 1 2 int(math.pow(side_len[2], 2)) int math.pow(side_len[2], 2) math.pow math pow side_len[2] side_len 2 2 print("YES") print "YES" print("NO") print "NO" N = int(input()) int(input()) N side_len = list(map(int, input().split(" "))) list(map(int, input().split(" "))) side_len
import math

N = int(input())

for i in range(N):
  side_len = list(map(int, input().split(" ")))
  side_len.sort()
  if int(math.pow(side_len[0], 2)) + int(math.pow(side_len[1], 2)) == int(math.pow(side_len[2], 2)):
    print("YES")
  else:
    print("NO")
