An organic compound, upon reacting with NH3, gives B. On heating, B gives C. In the presence of KOH, C reacts with Br2 to give CH3CH2NH2. What is A?