while line = gets
  value = line.chomp
  list = value.split
  if list.length != 3
    next
  end

  res_list = []
  res_list << list[0].to_i
  res_list << list[1].to_i
  res_list << list[2].to_i
  rlist = res_list.sort
  rlist[0] *= rlist[0]
  rlist[1] *= rlist[1]
  rlist[2] *= rlist[2]
  if ((rlist[0] + rlist[1]) == rlist[2])
    puts "YES"
  else
    puts "NO"
  end
end

