Malonic ester contains an active methylene group and two hydrogen atoms of active methylene group which are easily replaced by alkyl and acyl groups in the presence of a strong base. The carbonation intermediate formed makes SN2 attack on alkyl or acyl groups. In the sequence of reactions given above, the final product [S] is :