output_description: For each data set, print "YES" or "NO".
input_description: Input consists of several data sets. In the first line, the number of data
  set, N is given. Then, N lines follow, each line corresponds to a data set. A
  data set consists of three integers separated by a single space.
attempt: n = int(input())
  a = []
  c = []
  for i in range(n):
      a.append([])
      for j in range(3):
          a[i].append([])
  for i in range(n):
      # for j in range(3):
      a[i][0], a[i][1], a[i][2] = map(int, input().split())
      a[i].sort()
      if ((a[i][0] * a[i][0]) + (a[i][1] * a[i][1])) == (a[i][2] * a[i][2]):
          k = "YES"
          c.append(k)
      else:
          k = "NO"
          c.append(k)
  for i in range(n):
      print(c[i])
  
problem_description: Is it a Right Triangle?
  
  Write a program which judges wheather given length of three side form a right
  triangle. Print "YES" if the given sides (integers) form a right triangle,
  "NO" if not so.
samples: [{"input": "4 3 5\n    4 3 6\n    8 8 8", "output": "YES\n    NO\n    NO"}]