A solution of halide ions is treated with excess aqueous silver nitrate, and the pale precipitate is filtered off. Some of it dissolves when shaken with dilute aqueous ammonia. The residue is shaken with concentrated aqueous ammonia, and more of it dissolves, but a yellow solid remains. Which halide ions were in the original solution?