Semicarbazide is the chemical compound with the formula OC(NH2)(N2H3). It is a water-soluble white solid. It is a derivative of urea.
Acetaldehyde reacts with semicarbazide give acetaldehyde semicarbazone, the reaction will be

Hence the product formed has three nitrogen atoms in it.