A compound on heating with an excess of caustic soda solution liberates a gas (B), which gives white fumes on exposure to HCl. Heating is continued to expel the gas completely. The resultant alkaline solution again liberates the same gas (B), when heated with zinc powder. However, the compound (A), when heated alone, does not give nitrogen. Identify (A) and (B).