An organic compound A upon reacting with NH3 gives B. On heating B gives C. C in presence of KOH reacts with Br2 to give CH3CH2NH2. A is: