Input (grade 8): They, their wives and children are then put to death, and Daniel is permitted to destroy the idol of Bel and the temple.
Output (grade 7): The priests and their wives and children are killed, and Daniel is permitted to destroy the idol of Bel and the temple.