Mixture is heated with dil. H2SO4 and the lead acetate paper turns black by the evolved gases. The mixture contains