#coding: utf-8

num = STDIN.gets.to_i

for i in 1..num do
  data = STDIN.gets
  num = data.split()
  a = num[0].to_i
  b = num[1].to_i
  c = num[2].to_i
  a2 = Math.sqrt(b * b + c * c)
  b2 = Math.sqrt(c * c + a * a)
  c2 = Math.sqrt(a * a + b * b)
  if ((a == a2) || (b == b2) || (c == c2)) then
    print("YES\n")
  else
    print("NO\n")
  end
end