A colourless water soluble solid A on heating gives equimolar quantities of B and C. B gives dense white fumes with HCl and C does so with NH3. B gives brown precipitate with Nessler's reagent and C gives white precipitate with nitrates of Ag+,Pb+ and Hg+. A is: